Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def use(input_text):
|
|
33 |
prediction = model.predict(sequences)[0]
|
34 |
|
35 |
# Print the prediction
|
36 |
-
if prediction[0]<0.
|
37 |
return "That's Negative! (" + str(round(round(1-prediction[0],2)*100,1)) + "% confidence)", prediction[0]
|
38 |
elif prediction[0]>0.3:
|
39 |
return "That's Positive! (" + str(round(round(prediction[0],2)*100,1)) + "% confidence)", prediction[0]
|
|
|
33 |
prediction = model.predict(sequences)[0]
|
34 |
|
35 |
# Print the prediction
|
36 |
+
if prediction[0]<0.7:
|
37 |
return "That's Negative! (" + str(round(round(1-prediction[0],2)*100,1)) + "% confidence)", prediction[0]
|
38 |
elif prediction[0]>0.3:
|
39 |
return "That's Positive! (" + str(round(round(prediction[0],2)*100,1)) + "% confidence)", prediction[0]
|