ahabb commited on
Commit
34a30e3
·
verified ·
1 Parent(s): 6bdcfbc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ from transformers import AutoModelForSeq2SeqLM, AutoTokenizer, pipeline, Seq2Seq
4
  model_path = 'T5_samsum'
5
 
6
  # Load the model
7
- model = AutoModelForSequenceClassification.from_pretrained(model_path)
8
 
9
  # Load the tokenizer
10
  tokenizer = AutoTokenizer.from_pretrained(model_path)
 
4
  model_path = 'T5_samsum'
5
 
6
  # Load the model
7
+ model = AutoModelForSeq2SeqLM.from_pretrained(model_path)
8
 
9
  # Load the tokenizer
10
  tokenizer = AutoTokenizer.from_pretrained(model_path)