aws-solutions-library-samples / guidance-for-natural-language-queries-of-relational-databases-on-aws

Demonstration of Natural Language Query (NLQ) of an Amazon RDS for PostgreSQL database, using SageMaker JumpStart, Amazon Bedrock, LangChain, Streamlit, and Chroma.
https://aws.amazon.com/solutions/guidance/natural-language-queries-of-relational-databases-on-aws/
MIT No Attribution
58 stars 10 forks source link

`BASE_AVATAR_URL` path is not being resolved correctly #30

Closed garystafford-aws closed 1 year ago

garystafford-aws commented 1 year ago

Thank you, Antonio Martellotta (AWS Sr. SA, EMEA Private Equity) for pointing out that the BASE_AVATAR_URL path is not being resolved correctly. Missing brackets in four places in both the app_openai.py and app_sagemaker.py files. Results in the following error:

2023-08-05 12:32:23.290 Uncaught app exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/streamlit/elements/image.py", line 361, in image_to_url
    with open(image, "rb") as f:
         ^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'BASE_AVATAR_URL/bot-64px.png'
garystafford-aws commented 1 year ago

Issue resolved. Thank you, Antonio Martellotta.