CSV_data2 / app.py
saaketvarma's picture
Update app.py
7cebe76
raw
history blame
433 Bytes
import streamlit as st
from dotenv import load_dotenv
from utils import query_agent
load_dotenv()
import pandas as pd
data = pd.read_csv('Tickets_cleaned_v2.csv')
st.title("Let's do some analysis on your CSV")
st.header("Please upload your CSV file here:")
query = st.text_area("Enter your query")
button = st.button("Generate Response")
if button:
# Get Response
answer = query_agent(data,query)
st.write(answer)