Update app.py
Browse files
app.py
CHANGED
@@ -122,7 +122,7 @@ def plot_label_distribution():
|
|
122 |
label_counts.columns = ['label', 'count']
|
123 |
fig = px.bar(label_counts, x='label', y='count', text='count',
|
124 |
title="Label Distribution",
|
125 |
-
labels={'label': 'Label', 'count': '
|
126 |
color='label')
|
127 |
fig.update_traces(texttemplate='%{text:.2s}', textposition='outside')
|
128 |
fig.update_layout(uniformtext_minsize=8, uniformtext_mode='hide')
|
|
|
122 |
label_counts.columns = ['label', 'count']
|
123 |
fig = px.bar(label_counts, x='label', y='count', text='count',
|
124 |
title="Label Distribution",
|
125 |
+
labels={'label': 'Label', 'count': 'Count of tweets'},
|
126 |
color='label')
|
127 |
fig.update_traces(texttemplate='%{text:.2s}', textposition='outside')
|
128 |
fig.update_layout(uniformtext_minsize=8, uniformtext_mode='hide')
|