Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -51,6 +51,7 @@ from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
|
51 |
# Load the tokenizer and model
|
52 |
# tokenizer = AutoTokenizer.from_pretrained("valhalla/t5-small-qg-prepend", use_fast=False) # Disable the fast tokenizer
|
53 |
# model = AutoModelForSeq2SeqLM.from_pretrained("valhalla/t5-small-qg-prepend")
|
|
|
54 |
|
55 |
question_generator = pipeline("question-generation", model="valhalla/t5-small-qg-prepend", qg_format="prepend")
|
56 |
|
|
|
51 |
# Load the tokenizer and model
|
52 |
# tokenizer = AutoTokenizer.from_pretrained("valhalla/t5-small-qg-prepend", use_fast=False) # Disable the fast tokenizer
|
53 |
# model = AutoModelForSeq2SeqLM.from_pretrained("valhalla/t5-small-qg-prepend")
|
54 |
+
tokenizer = AutoTokenizer.from_pretrained("valhalla/t5-small-qg-prepend", use_fast=False)
|
55 |
|
56 |
question_generator = pipeline("question-generation", model="valhalla/t5-small-qg-prepend", qg_format="prepend")
|
57 |
|