Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 =
|
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)
|