@@ -77,7 +77,7 @@ def get_answer(self, input_text: str) -> dict:
77
77
Get an answer from the Bard API for the given input text.
78
78
79
79
Example:
80
- >>> token = 'xxxxxxxxxx '
80
+ >>> token = 'xxxxxx '
81
81
>>> bard = Bard(token=token)
82
82
>>> response = bard.get_answer("나와 내 동년배들이 좋아하는 뉴진스에 대해서 알려줘")
83
83
>>> print(response['content'])
@@ -239,7 +239,7 @@ def speech(self, input_text: str, lang="en-US") -> dict:
239
239
Get speech audio from Bard API for the given input text.
240
240
241
241
Example:
242
- >>> token = 'xxxxxxxxxx '
242
+ >>> token = 'xxxxxx '
243
243
>>> bard = Bard(token=token)
244
244
>>> audio = bard.speech("hello!")
245
245
>>> with open("bard.ogg", "wb") as f:
@@ -295,7 +295,7 @@ def export_conversation(self, bard_answer, title: str = ""):
295
295
Get Share URL for specific answer from bard
296
296
297
297
Example:
298
- >>> token = 'xxxxxxxxxx '
298
+ >>> token = 'xxxxxx '
299
299
>>> bard = Bard(token=token)
300
300
>>> bard_answer = bard.get_answer("hello!")
301
301
>>> url = bard.export_conversation(bard_answer, title="Export Conversation")
@@ -364,7 +364,7 @@ def ask_about_image(self, input_text: str, image: bytes, lang: str = None) -> di
364
364
Send Bard image along with question and get answer
365
365
366
366
Example:
367
- >>> token = 'xxxxxxxxxx '
367
+ >>> token = 'xxxxxx '
368
368
>>> bard = Bard(token=token)
369
369
>>> image = open('image.jpg', 'rb').read()
370
370
>>> bard_answer = bard.ask_about_image("what is in the image?", image)['content']
@@ -529,7 +529,7 @@ def export_replit(
529
529
Get Export URL to repl.it from code
530
530
531
531
Example:
532
- >>> token = 'xxxxxxxxxx '
532
+ >>> token = 'xxxxxx '
533
533
>>> bard = Bard(token=token)
534
534
>>> bard_answer = bard.get_answer("code python to print hello world")
535
535
>>> url = bard.export_replit(bard_answer['code'], bard_answer['langCode'])
0 commit comments