Spaces:
Runtime error
Runtime error
File size: 432 Bytes
99464ab a9ac9e5 99464ab a9ac9e5 99464ab a9ac9e5 99464ab |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import streamlit as st
from dotenv import load_dotenv
from utils import query_agent
load_dotenv()
# Direct CSV file
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) |