digai-co / DataGPT

AI Agent for Natural Language Queries to Generate Charts from a Database.
MIT License
53 stars 10 forks source link

Trouble connecting to database #2

Open AngelGO23 opened 4 months ago

AngelGO23 commented 4 months ago

I am running on windows. I have the postgres database running and have been able to connect to it using datagrip. However, when running the server/app.py, the connection seems to not be established.

image

image

After running the given prompt of "What are the specific grades of each student in each course?" it gives an error:

image

It does not create the SQL query nor the chart. There does not seem to be any new connection to the database after running the "submit" button in the application.

elvizlai commented 4 months ago

It seems a Gradio version problem.

Maybe you can try to reinstall the specified Gardio by

pip install --ignore-installed --no-cache -r .\requirements.txt