Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,11 +15,11 @@ def predict(text):
|
|
15 |
encoded_text = encoder(text)
|
16 |
#print(encoded_text)
|
17 |
prediction = (model.predict(encoded_text))
|
18 |
-
|
19 |
-
prediction = np.round(prediction)
|
20 |
-
if prediction==1:
|
21 |
-
|
22 |
-
return "Not a Disaster"
|
23 |
|
24 |
title="Relevance Classifier"
|
25 |
description="<p style='text-align:center'>Classifies input text into Disaster-related or not disaster related."
|
|
|
15 |
encoded_text = encoder(text)
|
16 |
#print(encoded_text)
|
17 |
prediction = (model.predict(encoded_text))
|
18 |
+
return prediction
|
19 |
+
#prediction = np.round(prediction)
|
20 |
+
#if prediction==1:
|
21 |
+
# return "Disaster"
|
22 |
+
#return "Not a Disaster"
|
23 |
|
24 |
title="Relevance Classifier"
|
25 |
description="<p style='text-align:center'>Classifies input text into Disaster-related or not disaster related."
|