AIsmart / pages /CSV_Data_Analyzer.py
palitrajarshi's picture
Update pages/CSV_Data_Analyzer.py
b3a49f2
raw
history blame
519 Bytes
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)