From 9b75f0446775123032c4396c4d5e826b259a6ce8 Mon Sep 17 00:00:00 2001 From: parkminwoo Date: Wed, 9 Aug 2023 10:39:25 +0900 Subject: [PATCH] chore: doc string layout --- bardapi/core.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bardapi/core.py b/bardapi/core.py index 106624592..b83736ead 100644 --- a/bardapi/core.py +++ b/bardapi/core.py @@ -77,7 +77,7 @@ def get_answer(self, input_text: str) -> dict: Get an answer from the Bard API for the given input text. Example: - >>> token = 'xxxxxxxxxx' + >>> token = 'xxxxxx' >>> bard = Bard(token=token) >>> response = bard.get_answer("나와 내 동년배들이 좋아하는 뉴진스에 대해서 알려줘") >>> print(response['content']) @@ -239,7 +239,7 @@ def speech(self, input_text: str, lang="en-US") -> dict: Get speech audio from Bard API for the given input text. Example: - >>> token = 'xxxxxxxxxx' + >>> token = 'xxxxxx' >>> bard = Bard(token=token) >>> audio = bard.speech("hello!") >>> with open("bard.ogg", "wb") as f: @@ -295,7 +295,7 @@ def export_conversation(self, bard_answer, title: str = ""): Get Share URL for specific answer from bard Example: - >>> token = 'xxxxxxxxxx' + >>> token = 'xxxxxx' >>> bard = Bard(token=token) >>> bard_answer = bard.get_answer("hello!") >>> 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 Send Bard image along with question and get answer Example: - >>> token = 'xxxxxxxxxx' + >>> token = 'xxxxxx' >>> bard = Bard(token=token) >>> image = open('image.jpg', 'rb').read() >>> bard_answer = bard.ask_about_image("what is in the image?", image)['content'] @@ -529,7 +529,7 @@ def export_replit( Get Export URL to repl.it from code Example: - >>> token = 'xxxxxxxxxx' + >>> token = 'xxxxxx' >>> bard = Bard(token=token) >>> bard_answer = bard.get_answer("code python to print hello world") >>> url = bard.export_replit(bard_answer['code'], bard_answer['langCode'])