AleVento commited on
Commit
cb6d49d
1 Parent(s): e00990b

add validation python

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -100,8 +100,8 @@ def run_sentiment_analysis (txt) :
100
  predictions.append(" ".join([label,str(prediction)]))
101
  return predictions
102
 
103
- predictions = run_sentiment_analysis(txt)
104
- print(predictions)
105
- for prediction in predictions:
106
- print(prediction)
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