tanish78 commited on
Commit
bd3a924
·
verified ·
1 Parent(s): 3205271

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 (excluding common 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