This is a simple Streamlit app that converts natural language questions into SQL queries using the Google Gemini language model and retrieves data from an SQLite database. The app is deployed on Hugging Face Spaces.
- Convert natural language questions into SQL queries.
- Query an SQLite database (
student.db) with columns such asNAME,CLASS, andSECTION. - Display the results in a table format using Streamlit.
You can try the live demo hosted on Hugging Face Spaces:
To run the app locally, you'll need to have Python installed on your machine. Follow these steps:
-
Clone the repository:
git clone https://github.com/PR-HARIHARAN/Prompt_To_Sql.git cd Prompt_To_Sql