Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.

Commit 9b75f04

Browse files
committed
chore: doc string layout
1 parent 8221054 commit 9b75f04

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

bardapi/core.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def get_answer(self, input_text: str) -> dict:
7777
Get an answer from the Bard API for the given input text.
7878
7979
Example:
80-
>>> token = 'xxxxxxxxxx'
80+
>>> token = 'xxxxxx'
8181
>>> bard = Bard(token=token)
8282
>>> response = bard.get_answer("나와 내 동년배들이 좋아하는 뉴진스에 대해서 알려줘")
8383
>>> print(response['content'])
@@ -239,7 +239,7 @@ def speech(self, input_text: str, lang="en-US") -> dict:
239239
Get speech audio from Bard API for the given input text.
240240
241241
Example:
242-
>>> token = 'xxxxxxxxxx'
242+
>>> token = 'xxxxxx'
243243
>>> bard = Bard(token=token)
244244
>>> audio = bard.speech("hello!")
245245
>>> with open("bard.ogg", "wb") as f:
@@ -295,7 +295,7 @@ def export_conversation(self, bard_answer, title: str = ""):
295295
Get Share URL for specific answer from bard
296296
297297
Example:
298-
>>> token = 'xxxxxxxxxx'
298+
>>> token = 'xxxxxx'
299299
>>> bard = Bard(token=token)
300300
>>> bard_answer = bard.get_answer("hello!")
301301
>>> 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
364364
Send Bard image along with question and get answer
365365
366366
Example:
367-
>>> token = 'xxxxxxxxxx'
367+
>>> token = 'xxxxxx'
368368
>>> bard = Bard(token=token)
369369
>>> image = open('image.jpg', 'rb').read()
370370
>>> bard_answer = bard.ask_about_image("what is in the image?", image)['content']
@@ -529,7 +529,7 @@ def export_replit(
529529
Get Export URL to repl.it from code
530530
531531
Example:
532-
>>> token = 'xxxxxxxxxx'
532+
>>> token = 'xxxxxx'
533533
>>> bard = Bard(token=token)
534534
>>> bard_answer = bard.get_answer("code python to print hello world")
535535
>>> url = bard.export_replit(bard_answer['code'], bard_answer['langCode'])

0 commit comments

Comments
 (0)