Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -211,7 +211,15 @@ if fetch_data:
|
|
211 |
</div>
|
212 |
"""
|
213 |
stats_placeholder.markdown(stats_html, unsafe_allow_html=True)
|
214 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
215 |
with st.sidebar.expander("π Helpful Resources", expanded=False):
|
216 |
st.markdown("""
|
217 |
<style>
|
|
|
211 |
</div>
|
212 |
"""
|
213 |
stats_placeholder.markdown(stats_html, unsafe_allow_html=True)
|
214 |
+
|
215 |
+
# π Most Common Subjects
|
216 |
+
st.subheader("Most Common Subjects")
|
217 |
+
if 'subject' in metadata_df.columns:
|
218 |
+
top_subjects = metadata_df['subject'].value_counts().head(10)
|
219 |
+
st.bar_chart(top_subjects)
|
220 |
+
else:
|
221 |
+
st.info("No subject metadata available to display.")
|
222 |
+
|
223 |
with st.sidebar.expander("π Helpful Resources", expanded=False):
|
224 |
st.markdown("""
|
225 |
<style>
|