Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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="
|
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):
|