Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,8 @@
|
|
| 1 |
-
from transformers import AutoModelForQuestionAnswering, AutoTokenizer
|
|
|
|
| 2 |
import gradio as grad
|
| 3 |
import AssertionError
|
|
|
|
| 4 |
model_name="deepset/roberta-base-squad2"
|
| 5 |
qa_pipeline = pipeline("question-answering", model=model_name, tokenizer=model_name)
|
| 6 |
|
|
|
|
| 1 |
+
from transformers import AutoModelForQuestionAnswering, AutoTokenizer
|
| 2 |
+
from transformers import pipeline
|
| 3 |
import gradio as grad
|
| 4 |
import AssertionError
|
| 5 |
+
|
| 6 |
model_name="deepset/roberta-base-squad2"
|
| 7 |
qa_pipeline = pipeline("question-answering", model=model_name, tokenizer=model_name)
|
| 8 |
|