OOlajide commited on
Commit
1ae1e57
1 Parent(s): 5ac3f90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- model = AutoModelForQuestionAnswering.from_pretrained("deepset/roberta-base-squad2")
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)