Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,8 @@ from transformers import AutoModelForQuestionAnswering, AutoTokenizer, pipeline
|
|
2 |
import gradio as grad
|
3 |
import ast
|
4 |
|
5 |
-
mdl_name = "deepset/roberta-base-squad2"
|
6 |
-
|
7 |
my_pipeline = pipeline('question-answering', model=mdl_name, tokenizer=mdl_name)
|
8 |
|
9 |
def answer_question(question,context):
|
|
|
2 |
import gradio as grad
|
3 |
import ast
|
4 |
|
5 |
+
#mdl_name = "deepset/roberta-base-squad2"
|
6 |
+
mdl_name = "distilbert-base-cased-distilled-squad"
|
7 |
my_pipeline = pipeline('question-answering', model=mdl_name, tokenizer=mdl_name)
|
8 |
|
9 |
def answer_question(question,context):
|