Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

Commit

Permalink
close #43
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio committed Jun 1, 2023
1 parent e778c84 commit cff62da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Bard.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
from rich.console import Console
from rich.markdown import Markdown

from typing import List, Dict


def __create_session() -> PromptSession:
return PromptSession(history=InMemoryHistory())
Expand Down Expand Up @@ -116,7 +118,7 @@ def save_conversation(self, file_path: str, conversation_name: str):
with open(file_path, "w", encoding="utf-8") as f:
json.dump(conversations, f, indent=4)

def load_conversations(self, file_path: str) -> list[dict]:
def load_conversations(self, file_path: str) -> List[Dict]:
# Check if file exists
if not os.path.isfile(file_path):
return []
Expand Down

0 comments on commit cff62da

Please sign in to comment.