Spaces:
Sleeping
Sleeping
Update app.py
#4
by
rairo
- opened
app.py
CHANGED
@@ -102,22 +102,22 @@ def generateResponse(dataFrame,prompt):
|
|
102 |
answer = pandas_agent.chat(prompt)
|
103 |
return answer
|
104 |
|
105 |
-
st.write("#
|
106 |
st.markdown('<style>' + open('./style.css').read() + '</style>', unsafe_allow_html=True)
|
107 |
st.write("##### Engage in insightful conversations with your data through powerful visualizations")
|
108 |
with st.sidebar:
|
109 |
-
st.title("
|
110 |
-
st.sidebar.image("IMG_1181.jpeg", use_column_width=True)
|
111 |
tabs = on_hover_tabs(tabName=['Chat', 'Reports'],
|
112 |
iconName=['chat', 'dashboard'], default_choice=0)
|
113 |
|
114 |
|
115 |
|
116 |
-
uploaded_file = "
|
117 |
#uploaded_file = "healthcare_dataset.csv"
|
118 |
if tabs =='Chat':
|
119 |
df = pd.read_csv(uploaded_file)
|
120 |
-
st.subheader("
|
121 |
st.write("Get visualizations and analysis from our Gemini powered agent")
|
122 |
|
123 |
# Read the CSV file
|
|
|
102 |
answer = pandas_agent.chat(prompt)
|
103 |
return answer
|
104 |
|
105 |
+
st.write("# Craig Data Insights")
|
106 |
st.markdown('<style>' + open('./style.css').read() + '</style>', unsafe_allow_html=True)
|
107 |
st.write("##### Engage in insightful conversations with your data through powerful visualizations")
|
108 |
with st.sidebar:
|
109 |
+
st.title("Craig Data Insights")
|
110 |
+
#st.sidebar.image("IMG_1181.jpeg", use_column_width=True)
|
111 |
tabs = on_hover_tabs(tabName=['Chat', 'Reports'],
|
112 |
iconName=['chat', 'dashboard'], default_choice=0)
|
113 |
|
114 |
|
115 |
|
116 |
+
uploaded_file = "craig.xlsx"
|
117 |
#uploaded_file = "healthcare_dataset.csv"
|
118 |
if tabs =='Chat':
|
119 |
df = pd.read_csv(uploaded_file)
|
120 |
+
st.subheader("Chat with your data")
|
121 |
st.write("Get visualizations and analysis from our Gemini powered agent")
|
122 |
|
123 |
# Read the CSV file
|