Spaces:
Build error
Build error
File size: 386 Bytes
eb25bea cc65d16 eb25bea 1004110 eb25bea 47b1687 eb25bea 02dfdd8 306b8a3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | import streamlit as st
from dotenv import load_dotenv
from utils import query_agent
load_dotenv()
st.title("CSV Analysis Tool")
st.header("Upload your csv file here:")
data = st.file_uploader("Upload CSV File", type = "csv")
query = st.text_area("Enter your query here:")
button = st.button("Generate response")
if button:
answer = query_agent(data,query)
st.write(answer)
|