Spaces:
Build error
Build error
Download app.py from vmalapaka/CSV_Data_Analysis_tool: direct link, hf CLI and curl.
- Browser
- Download file 386 Bytes
-
https://huggingface.co/spaces/vmalapaka/CSV_Data_Analysis_tool/resolve/main/app.py
- Command line
-
hf download hf://spaces/vmalapaka/CSV_Data_Analysis_tool/app.py
-
curl -L -o app.py https://huggingface.co/spaces/vmalapaka/CSV_Data_Analysis_tool/resolve/main/app.py
386 Bytes
| import streamlit as st | |
| from dotenv import load_dotenv | |
| from utils import query_agent | |
| load_dotenv() | |
| st.title("CSV Analysis Tool") | |
| st.header("Upload your csv file here:") | |
| data = st.file_uploader("Upload CSV File", type = "csv") | |
| query = st.text_area("Enter your query here:") | |
| button = st.button("Generate response") | |
| if button: | |
| answer = query_agent(data,query) | |
| st.write(answer) | |