hgdgng commited on
Commit
e4c2114
·
verified ·
1 Parent(s): 14fa994

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  from transformers import pipeline
3
 
4
  # Load the pre-trained question-answering model from Hugging Face
5
- qa_pipeline = pipeline("question-answering", model="distilbert-base-uncased-distilled-squad")
6
 
7
  # Define the function that takes inputs and returns the answer
8
  def answer_question(context, question):
 
2
  from transformers import pipeline
3
 
4
  # Load the pre-trained question-answering model from Hugging Face
5
+ qa_pipeline = pipeline("question-answering", model="deepset/roberta-base-squad2")
6
 
7
  # Define the function that takes inputs and returns the answer
8
  def answer_question(context, question):