clarice7 commited on
Commit
d94a6a3
1 Parent(s): 3e3a527

Upload app.py

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