Spaces:
Sleeping
Sleeping
File size: 822 Bytes
b7c69c7 0d85a33 b7c69c7 9a3e0c8 0d325dc 9a3e0c8 0508590 b7c69c7 b3a49f2 b7c69c7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
import streamlit as st
from utils1 import query_agent
st.set_page_config(page_title="Spreadsheet Analyzer")
st.title("Let's do some analysis on your CSV...π€ ")
st.subheader("Please upload your CSV file here:")
#st.sidebar.title("π")
st.sidebar.image('./csv_analysis.png',width=300, use_column_width=True)
# Applying Styling
st.markdown("""
<style>
div.stButton > button:first-child {
background-color: #0099ff;
color:#ffffff;
}
div.stButton > button:hover {
background-color: #00ff00;
color:#FFFFFF;
}
</style>""", unsafe_allow_html=True)
# 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) |