MarieAngeA13
commited on
Commit
·
1458c90
1
Parent(s):
29ef367
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ print(translated_text)
|
|
28 |
# When the user submits text, run the sentiment analysis model on it
|
29 |
if st.button('Submit'):
|
30 |
# Predict the sentiment of the text using our own BERT model
|
31 |
-
output = classifier(
|
32 |
|
33 |
best_prediction = output[0]
|
34 |
sentiment = best_prediction['label']
|
|
|
28 |
# When the user submits text, run the sentiment analysis model on it
|
29 |
if st.button('Submit'):
|
30 |
# Predict the sentiment of the text using our own BERT model
|
31 |
+
output = classifier(text_input)
|
32 |
|
33 |
best_prediction = output[0]
|
34 |
sentiment = best_prediction['label']
|