Walid-Ahmed commited on
Commit
feb20ce
·
verified ·
1 Parent(s): 2f7310c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -3,8 +3,7 @@ from transformers import pipeline
3
  import chardet
4
 
5
  # Initialize the question-answering pipeline
6
- qa_pipeline = pipeline("question-answering")
7
-
8
 
9
  def answer_question(context, question):
10
  result = qa_pipeline(question=question, context=context)
 
3
  import chardet
4
 
5
  # Initialize the question-answering pipeline
6
+ qa_pipeline = pipeline("question-answering",model="deepset/roberta-base-squad2")
 
7
 
8
  def answer_question(context, question):
9
  result = qa_pipeline(question=question, context=context)