Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,9 @@ model = AutoModelForSequenceClassification.from_pretrained(
|
|
| 20 |
sentiment_pipeline = pipeline(
|
| 21 |
"text-classification",
|
| 22 |
model=model,
|
| 23 |
-
tokenizer=tokenizer
|
|
|
|
|
|
|
| 24 |
)
|
| 25 |
print("✅ Modello caricato!")
|
| 26 |
|
|
|
|
| 20 |
sentiment_pipeline = pipeline(
|
| 21 |
"text-classification",
|
| 22 |
model=model,
|
| 23 |
+
tokenizer=tokenizer,
|
| 24 |
+
truncation=True,
|
| 25 |
+
max_length=512
|
| 26 |
)
|
| 27 |
print("✅ Modello caricato!")
|
| 28 |
|