Spaces:
Sleeping
Sleeping
Pranjal12345
commited on
Commit
•
0be2832
1
Parent(s):
f060475
Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,8 @@ import re
|
|
4 |
import os
|
5 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
6 |
|
7 |
-
tokenizer = AutoTokenizer.from_pretrained("potsawee/t5-large-generation-
|
8 |
-
model = AutoModelForSeq2SeqLM.from_pretrained("potsawee/t5-large-generation-
|
9 |
|
10 |
def generate_question_answer_pairs(input_text):
|
11 |
if input_text is None:
|
|
|
4 |
import os
|
5 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
6 |
|
7 |
+
tokenizer = AutoTokenizer.from_pretrained("potsawee/t5-large-generation-squad-QuestionAnswer")
|
8 |
+
model = AutoModelForSeq2SeqLM.from_pretrained("potsawee/t5-large-generation-squad-QuestionAnswer")
|
9 |
|
10 |
def generate_question_answer_pairs(input_text):
|
11 |
if input_text is None:
|