File size: 921 Bytes
b7c69c7
0d85a33
b7c69c7
9a3e0c8
9722997
256556c
b4f2211
1313c67
9a3e0c8
0d325dc
 
9a3e0c8
0508590
 
 
 
 
 
 
 
 
 
 
 
 
b7c69c7
b4f2211
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
34
35
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.title("πŸ“ˆπŸ“‰πŸ“Š Let's analyze your CSV...")
st.title("πŸ€– CSV Data Analyzer")
st.subheader("Let's analyze your CSV πŸ“Š")

#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("Please upload your CSV file here",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)