kxx-kkk commited on
Commit
ae488b6
1 Parent(s): 22dd8c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = "kxx-kkk/FYP_deberta-v3-base-squad2_mrqa"
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)