Skip to content

Commit

Permalink
fix missing images in acheong08#78
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio committed Jul 26, 2023
1 parent 1ad3f1d commit c239143
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Bard.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ async def ask(self, message: str) -> dict:
MESSAGE = " ".join(sys.argv[1:])
response = chatbot.ask(MESSAGE)
console.print(Markdown(response["content"]))
console.print(response["images"] if response["images"] else "")
console.print(response["images"] if response.get("images") else "")
sys.exit(0)
parser = argparse.ArgumentParser()
parser.add_argument(
Expand Down Expand Up @@ -355,7 +355,7 @@ async def ask(self, message: str) -> dict:
print("Google Bard:")
response = chatbot.ask(user_prompt)
console.print(Markdown(response["content"]))
console.print(response["images"] if response["images"] else "")
console.print(response["images"] if response.get("images") else "")
print()
except KeyboardInterrupt:
print("Exiting...")

0 comments on commit c239143

Please sign in to comment.