Spaces:
Sleeping
Sleeping
File size: 444 Bytes
5a235de |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import streamlit as st
from dotenv import load_dotenv
from utils import query_agent
load_dotenv()
st.title("Let's do some analysis on your CSV")
st.header("Please upload your CSV file here:")
# Capture the CSV file
data = st.file_uploader("Upload CSV file",type="csv")
query = st.text_area("Enter your query")
button = st.button("Generate Response")
if button:
# Get Response
answer = query_agent(data,query)
st.write(answer) |