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

Commit

Permalink
refactor: style black
Browse files Browse the repository at this point in the history
  • Loading branch information
dsdanielpark committed Sep 28, 2023
1 parent b53a2e4 commit 6f2b50d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion bardapi/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ def ask(
image_name: Optional[str] = None,
tool: Optional[Tool] = None,
) -> BardResult:

if image is not None:
image_url = upload_image(image)
else:
Expand Down
4 changes: 2 additions & 2 deletions bardapi/models/citation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class DraftCitation:
""" Github source
"""Github source
[[909, 1095, ['', 'edelahoz/Introduction-to-Python ', '', '', '', None, None, '', False, '', '', '', '', '', '', ''], 1, 100, None, [1]],
[940, 1139, ['', 'Engr-Asad-Hussain/oop ', '', '', '', None, None, '', False, '', '', '', '', '', '', ''], 1, 100, None, [1]],
[953, 1166, ['', 'TeknikhogskolanGothenburg/PGBPYH21_Programmering', '', '', '', None, None, '', False, '', '', '', '', '', '', ''], 1, 100, None, [1]]]
Expand All @@ -12,7 +12,7 @@ class DraftCitation:
def __init__(self, input_list: list, text: str):
self._input_list = input_list
self.span: tuple[int, int] = self._input_list[0], self._input_list[1]
self.text: str = text[self.span[0]:self.span[1]]
self.text: str = text[self.span[0] : self.span[1]]

@property
def source_path(self) -> str:
Expand Down
2 changes: 1 addition & 1 deletion bardapi/models/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def source(self) -> dict:

@property
def key(self) -> str:
""" use this to replace the image in the markdown, several images can have the same key """
"""use this to replace the image in the markdown, several images can have the same key"""
return self._input_list[2]

@property
Expand Down
2 changes: 1 addition & 1 deletion bardapi/models/tools/tool_declaimer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


class BardToolDeclaimer(UserContent):
""" http://googleusercontent.com/tool_disclaimer_content/1 """
"""http://googleusercontent.com/tool_disclaimer_content/1"""

def __init__(self, input_list: list):
self._input_list = input_list
Expand Down

0 comments on commit 6f2b50d

Please sign in to comment.