Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from transformers import pipeline, AutoModelForSeq2SeqLM, AutoTokenizer
|
|
3 |
|
4 |
|
5 |
# Load model and tokenizer
|
6 |
-
model_name = "
|
7 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
8 |
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
|
9 |
qa_pipeline = pipeline("text2text-generation", model=model, tokenizer=tokenizer)
|
|
|
3 |
|
4 |
|
5 |
# Load model and tokenizer
|
6 |
+
model_name = "t5_qa_model.pt"
|
7 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
8 |
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
|
9 |
qa_pipeline = pipeline("text2text-generation", model=model, tokenizer=tokenizer)
|