Spaces:
Sleeping
Sleeping
Commit
·
2c5675c
1
Parent(s):
7689c36
update font path
Browse files
app.py
CHANGED
@@ -96,6 +96,9 @@ def combined_analysis(text, slank_formal_df):
|
|
96 |
emotion_counts = df['Emotion'].value_counts()
|
97 |
fig_emotion = px.pie(emotion_counts, values=emotion_counts.values, names=emotion_counts.index, title='Emotion Distribution')
|
98 |
st.plotly_chart(fig_emotion, use_container_width=True)
|
|
|
|
|
|
|
99 |
|
100 |
# Overall word cloud
|
101 |
overall_text = ' '.join(df['Cleaned Content'].dropna())
|
|
|
96 |
emotion_counts = df['Emotion'].value_counts()
|
97 |
fig_emotion = px.pie(emotion_counts, values=emotion_counts.values, names=emotion_counts.index, title='Emotion Distribution')
|
98 |
st.plotly_chart(fig_emotion, use_container_width=True)
|
99 |
+
|
100 |
+
# Generate word clouds
|
101 |
+
font_path = 'assets\Poppins-Regular.ttf'
|
102 |
|
103 |
# Overall word cloud
|
104 |
overall_text = ' '.join(df['Cleaned Content'].dropna())
|