Spaces:
Runtime error
Runtime error
Fixed bugs.
Browse files
app.py
CHANGED
@@ -142,8 +142,7 @@ def predict(tweet):
|
|
142 |
|
143 |
if type(prediction) is dict:
|
144 |
# return "Model is still loading. Try again."
|
145 |
-
|
146 |
-
predict(tweet)
|
147 |
|
148 |
if bool(matched_profanity) == False:
|
149 |
return "No profanity found."
|
|
|
142 |
|
143 |
if type(prediction) is dict:
|
144 |
# return "Model is still loading. Try again."
|
145 |
+
return "Model is loading. Try again."
|
|
|
146 |
|
147 |
if bool(matched_profanity) == False:
|
148 |
return "No profanity found."
|