Spaces:
Runtime error
Runtime error
Fixed bugs.
Browse files
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
|
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)
|