PaoloLuigiBarletto commited on
Commit
aa6855c
·
verified ·
1 Parent(s): 7243134

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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