mginoben commited on
Commit
2f2384f
1 Parent(s): 66c9618

Fixed bugs.

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -145,7 +145,7 @@ def predict(tweet):
145
  return "Model is loading. Try again."
146
 
147
  if bool(matched_profanity) == False:
148
- return "No profanity found."
149
 
150
  prediction = [tuple(i.values()) for i in prediction[0]]
151
  prediction = dict((x, y) for x, y in prediction)
 
145
  return "Model is loading. Try again."
146
 
147
  if bool(matched_profanity) == False:
148
+ return "No profanity"
149
 
150
  prediction = [tuple(i.values()) for i in prediction[0]]
151
  prediction = dict((x, y) for x, y in prediction)