Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ st.write("Extractive question answering is a Natural Language Processing task wh
|
|
15 |
@st.cache_resource(show_spinner=True)
|
16 |
def question_model():
|
17 |
# call my model for question answering
|
18 |
-
model_name = "
|
19 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
20 |
model = AutoModelForQuestionAnswering.from_pretrained(model_name)
|
21 |
question_answerer = pipeline("question-answering", model=model, tokenizer=tokenizer)
|
|
|
15 |
@st.cache_resource(show_spinner=True)
|
16 |
def question_model():
|
17 |
# call my model for question answering
|
18 |
+
model_name = "deepset/deberta-v3-base-squad2"
|
19 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
20 |
model = AutoModelForQuestionAnswering.from_pretrained(model_name)
|
21 |
question_answerer = pipeline("question-answering", model=model, tokenizer=tokenizer)
|