Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
@@ -116,7 +116,7 @@ def simulate(image0, image1):
|
|
116 |
preference = 0 if avg_preference < 0.5 else 1
|
117 |
print(preferences, preference)
|
118 |
|
119 |
-
all_reasons = ' '.join([word.strip() for
|
120 |
wordcloud = WordCloud(width = 800, height = 400, background_color ='white').generate(all_reasons)
|
121 |
|
122 |
plt.figure(figsize=(10,5))
|
|
|
116 |
preference = 0 if avg_preference < 0.5 else 1
|
117 |
print(preferences, preference)
|
118 |
|
119 |
+
all_reasons = ' '.join([word.strip() for item in reasons for word in item.split(',')])
|
120 |
wordcloud = WordCloud(width = 800, height = 400, background_color ='white').generate(all_reasons)
|
121 |
|
122 |
plt.figure(figsize=(10,5))
|