File size: 519 Bytes
b7c69c7
0d85a33
 
b7c69c7
0d85a33
b7c69c7
f1eafa4
b3a49f2
 
b7c69c7
 
 
 
b3a49f2
b7c69c7
 
 
 
 
 
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 utils1 import query_agent

#load_dotenv()

st.set_page_config(page_title="Spreadsheet Analyzer")
st.subtitle("Let's do some analysis on your CSV...πŸ€– ")
st.subheader("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)