florymignon commited on
Commit
f5a8213
·
1 Parent(s): a1e6cd9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,7 +1,8 @@
1
  from transformers import pipeline
2
  import gradio as gr
3
 
4
- mdl_name = "deepset/roberta-base-squad2"
 
5
  my_pipeline = pipeline("question-answering", model=mdl_name, tokenizer=mdl_name)
6
 
7
  def answer_question(question, context):
 
1
  from transformers import pipeline
2
  import gradio as gr
3
 
4
+ # mdl_name = "deepset/roberta-base-squad2"
5
+ mdl_name = "distilbert-base-cased-distilled-squad"
6
  my_pipeline = pipeline("question-answering", model=mdl_name, tokenizer=mdl_name)
7
 
8
  def answer_question(question, context):