Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -80,10 +80,10 @@ def generateResponse(dataFrame,prompt):
|
|
| 80 |
|
| 81 |
st.write("# Intervention Analytics")
|
| 82 |
st.markdown('<style>' + open('./style.css').read() + '</style>', unsafe_allow_html=True)
|
| 83 |
-
st.write("
|
| 84 |
|
| 85 |
with st.sidebar:
|
| 86 |
-
st.
|
| 87 |
st.sidebar.image("logoqb.jpeg", use_column_width=True)
|
| 88 |
tabs = on_hover_tabs(tabName=['Chat', 'Reports'], iconName=['chat', 'dashboard'], default_choice=0)
|
| 89 |
|
|
@@ -97,24 +97,24 @@ col1_full, col2_full = st.columns(2)
|
|
| 97 |
|
| 98 |
with col1_full:
|
| 99 |
fig_gender_full = px.histogram(df_full, x="Gender", title="Overall Gender Distribution")
|
| 100 |
-
fig_gender_full.update_layout(height=200, width=
|
| 101 |
st.plotly_chart(fig_gender_full)
|
| 102 |
|
| 103 |
fig_youth_full = px.histogram(df_full, x="Youth", title="Overall Youth Participation")
|
| 104 |
-
fig_youth_full.update_layout(height=
|
| 105 |
st.plotly_chart(fig_youth_full)
|
| 106 |
|
| 107 |
fig_company_full = px.histogram(df_full, x="Company Name", title="Overall Company Distribution")
|
| 108 |
-
fig_company_full.update_layout(height=
|
| 109 |
st.plotly_chart(fig_company_full)
|
| 110 |
|
| 111 |
with col2_full:
|
| 112 |
fig_category_full = px.histogram(df_full, y="Intervention_Category", title="Overall Intervention Category Distribution")
|
| 113 |
-
fig_category_full.update_layout(height=
|
| 114 |
st.plotly_chart(fig_category_full)
|
| 115 |
|
| 116 |
fig_intervention_full = px.histogram(df_full, y="Intervention", title="Overall Intervention Type Distribution")
|
| 117 |
-
fig_intervention_full.update_layout(height=
|
| 118 |
st.plotly_chart(fig_intervention_full)
|
| 119 |
|
| 120 |
fig_pie_category = px.pie(df_full, names='Intervention_Category', title='Overall Intervention Category Pie Chart')
|
|
|
|
| 80 |
|
| 81 |
st.write("# Intervention Analytics")
|
| 82 |
st.markdown('<style>' + open('./style.css').read() + '</style>', unsafe_allow_html=True)
|
| 83 |
+
st.write("Get analysis and engage in insightful conversations with your data through our powerful AI")
|
| 84 |
|
| 85 |
with st.sidebar:
|
| 86 |
+
st.subheader("Intervention Analytics")
|
| 87 |
st.sidebar.image("logoqb.jpeg", use_column_width=True)
|
| 88 |
tabs = on_hover_tabs(tabName=['Chat', 'Reports'], iconName=['chat', 'dashboard'], default_choice=0)
|
| 89 |
|
|
|
|
| 97 |
|
| 98 |
with col1_full:
|
| 99 |
fig_gender_full = px.histogram(df_full, x="Gender", title="Overall Gender Distribution")
|
| 100 |
+
fig_gender_full.update_layout(height=200, width=200)
|
| 101 |
st.plotly_chart(fig_gender_full)
|
| 102 |
|
| 103 |
fig_youth_full = px.histogram(df_full, x="Youth", title="Overall Youth Participation")
|
| 104 |
+
fig_youth_full.update_layout(height=300, width=200)
|
| 105 |
st.plotly_chart(fig_youth_full)
|
| 106 |
|
| 107 |
fig_company_full = px.histogram(df_full, x="Company Name", title="Overall Company Distribution")
|
| 108 |
+
fig_company_full.update_layout(height=300, width=200)
|
| 109 |
st.plotly_chart(fig_company_full)
|
| 110 |
|
| 111 |
with col2_full:
|
| 112 |
fig_category_full = px.histogram(df_full, y="Intervention_Category", title="Overall Intervention Category Distribution")
|
| 113 |
+
fig_category_full.update_layout(height=300, width=200)
|
| 114 |
st.plotly_chart(fig_category_full)
|
| 115 |
|
| 116 |
fig_intervention_full = px.histogram(df_full, y="Intervention", title="Overall Intervention Type Distribution")
|
| 117 |
+
fig_intervention_full.update_layout(height=300, width=300)
|
| 118 |
st.plotly_chart(fig_intervention_full)
|
| 119 |
|
| 120 |
fig_pie_category = px.pie(df_full, names='Intervention_Category', title='Overall Intervention Category Pie Chart')
|