Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -149,7 +149,7 @@ def generate_bar_chart(df, num_clusters_to_display):
|
|
| 149 |
category_sizes.columns = ['Category', 'Count']
|
| 150 |
category_sizes = category_sizes.merge(category_top_words[['Category', 'top_word']], on='Category')
|
| 151 |
|
| 152 |
-
fig = px.bar(category_sizes, x='Category', y='Count', text='top_word', title='Category Frequency with Top Words
|
| 153 |
fig.update_traces(textposition='outside')
|
| 154 |
fig.update_layout(xaxis_title='Category', yaxis_title='Frequency', showlegend=False)
|
| 155 |
|
|
|
|
| 149 |
category_sizes.columns = ['Category', 'Count']
|
| 150 |
category_sizes = category_sizes.merge(category_top_words[['Category', 'top_word']], on='Category')
|
| 151 |
|
| 152 |
+
fig = px.bar(category_sizes, x='Category', y='Count', text='top_word', title='Category Frequency with Top Words')
|
| 153 |
fig.update_traces(textposition='outside')
|
| 154 |
fig.update_layout(xaxis_title='Category', yaxis_title='Frequency', showlegend=False)
|
| 155 |
|