Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ option = st.sidebar.radio('', ['Extractive question answering', 'Text summarizat
|
|
| 14 |
@st.cache(show_spinner=False, allow_output_mutation=True)
|
| 15 |
def question_model():
|
| 16 |
tokenizer = AutoTokenizer.from_pretrained("deepset/roberta-base-squad2")
|
| 17 |
-
|
| 18 |
return question_answerer
|
| 19 |
|
| 20 |
@st.cache(show_spinner=False, allow_output_mutation=True)
|
|
|
|
| 14 |
@st.cache(show_spinner=False, allow_output_mutation=True)
|
| 15 |
def question_model():
|
| 16 |
tokenizer = AutoTokenizer.from_pretrained("deepset/roberta-base-squad2")
|
| 17 |
+
question_answerer = AutoModelForQuestionAnswering.from_pretrained("deepset/roberta-base-squad2")
|
| 18 |
return question_answerer
|
| 19 |
|
| 20 |
@st.cache(show_spinner=False, allow_output_mutation=True)
|