Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
|
6 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
7 |
|
8 |
pipe = TextClassificationPipeline(model=model, tokenizer=tokenizer, return_all_scores=True)
|
9 |
-
text = st.text_area(f'Ciao! This app uses {model_name}
|
10 |
|
11 |
if text:
|
12 |
out = pipe(text)
|
|
|
6 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
7 |
|
8 |
pipe = TextClassificationPipeline(model=model, tokenizer=tokenizer, return_all_scores=True)
|
9 |
+
text = st.text_area(f'Ciao! This app uses {model_name}.\nEnter your text to test it ❤️')
|
10 |
|
11 |
if text:
|
12 |
out = pipe(text)
|