PIERRE CUGNET
commited on
Commit
•
1409c20
1
Parent(s):
86473c5
feat(py): add a button to prevent automatic inference
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def clean_text(text):
|
|
51 |
|
52 |
|
53 |
st.title('Welcome to my twitter airline sentiment analysis !', anchor='center')
|
54 |
-
airline_tweet = st.text_input('Enter your english airline tweet here, press the prediction button and wait for the model to predict the sentiment of your review:', '@AmericanAirline My flight was awful, the flight was late and you lost my luggage!
|
55 |
|
56 |
tokenizer = AutoTokenizer.from_pretrained('distilbert-base-uncased', num_labels=2)
|
57 |
|
51 |
|
52 |
|
53 |
st.title('Welcome to my twitter airline sentiment analysis !', anchor='center')
|
54 |
+
airline_tweet = st.text_input('Enter your english airline tweet here, press the prediction button and wait for the model to predict the sentiment of your review:', '@AmericanAirline My flight was awful, the flight was late and you lost my luggage!')
|
55 |
|
56 |
tokenizer = AutoTokenizer.from_pretrained('distilbert-base-uncased', num_labels=2)
|
57 |
|