This is a Streamlit app that uses OpenAI language model to generate text from CSV data.
- Upload a CSV file to the app.
- Enter a query about your CSV data.
- The app will generate text that answers your query.
- requirements.txt packages
- OpenAI's API key
-
Install the required packages:
pip install -r requirements.txt
-
Create a .env file in the root directory of this project and add your OpenAI API key to the file. For example: OPENAI_API_KEY=YOUR_API_KEY
-
Run the app:
streamlit run app.py
Here is an example of how to use the app:
- Upload the
products.csv
file to the app. - Enter the query
What are the most popular products?
. - The app will generate text that answers your query, such as:
The most popular products are:
Product A
Product B
Product C
This project is licensed under the MIT License.