Spaces:
Runtime error
Runtime error
add validation python
Browse files
app.py
CHANGED
@@ -100,8 +100,8 @@ def run_sentiment_analysis (txt) :
|
|
100 |
predictions.append(" ".join([label,str(prediction)]))
|
101 |
return predictions
|
102 |
|
103 |
-
|
104 |
-
|
105 |
-
for prediction in predictions:
|
106 |
-
|
107 |
|
|
|
100 |
predictions.append(" ".join([label,str(prediction)]))
|
101 |
return predictions
|
102 |
|
103 |
+
if(txt):
|
104 |
+
predictions = run_sentiment_analysis(txt)
|
105 |
+
for prediction in predictions:
|
106 |
+
st.write(prediction)
|
107 |
|