DrishtiSharma commited on
Commit
b55c174
Β·
verified Β·
1 Parent(s): 5803fa4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -12
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
- if st.button("Submit Query"):
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