Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -165,18 +165,7 @@ if st.session_state.df is not None:
|
|
165 |
|
166 |
with tab1:
|
167 |
query = st.text_area("Enter Query:", value="Provide insights into the salary of a Principal Data Scientist.")
|
168 |
-
|
169 |
-
with st.spinner("Processing query..."):
|
170 |
-
inputs = {"query": query}
|
171 |
-
result = crew.kickoff(inputs=inputs)
|
172 |
-
st.markdown("### Analysis Report:")
|
173 |
-
st.markdown(result)
|
174 |
-
|
175 |
-
# Query-Specific Visualization
|
176 |
-
if "salary" in query.lower():
|
177 |
-
fig = px.box(st.session_state.df, x="job_title", y="salary_in_usd", title="Salary Distribution by Job Title")
|
178 |
-
st.plotly_chart(fig)
|
179 |
-
|
180 |
with tab2:
|
181 |
st.subheader("π Comprehensive Data Visualizations")
|
182 |
|
|
|
165 |
|
166 |
with tab1:
|
167 |
query = st.text_area("Enter Query:", value="Provide insights into the salary of a Principal Data Scientist.")
|
168 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
with tab2:
|
170 |
st.subheader("π Comprehensive Data Visualizations")
|
171 |
|