Update app.py
Browse files
app.py
CHANGED
@@ -147,6 +147,8 @@ def create_key_phrases_positive_sentiment_chart(df):
|
|
147 |
# Update layout settings to fit and look better
|
148 |
fig.update_layout(margin=dict(l=20, r=20, t=50, b=20), xaxis_title="Frequency", yaxis_title="Trigram", font=dict(size=10))
|
149 |
|
|
|
|
|
150 |
# Function for Prevalence of Discriminatory Content Chart
|
151 |
def create_prevalence_discriminatory_content_chart(df):
|
152 |
domain_counts = df.groupby(['Domain', 'Discrimination']).size().unstack(fill_value=0)
|
|
|
147 |
# Update layout settings to fit and look better
|
148 |
fig.update_layout(margin=dict(l=20, r=20, t=50, b=20), xaxis_title="Frequency", yaxis_title="Trigram", font=dict(size=10))
|
149 |
|
150 |
+
return fig
|
151 |
+
|
152 |
# Function for Prevalence of Discriminatory Content Chart
|
153 |
def create_prevalence_discriminatory_content_chart(df):
|
154 |
domain_counts = df.groupby(['Domain', 'Discrimination']).size().unstack(fill_value=0)
|