Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,6 @@
|
|
1 |
from transformers import pipeline
|
2 |
import gradio as gr
|
3 |
|
4 |
-
# Load the question-answering pipeline using the deepset/roberta-base-squad2 model
|
5 |
-
qa_model = pipeline("question-answering", model="deepset/roberta-base-squad2")
|
6 |
|
7 |
# Define a function to get the model's response
|
8 |
def get_response(context, question):
|
|
|
1 |
from transformers import pipeline
|
2 |
import gradio as gr
|
3 |
|
|
|
|
|
4 |
|
5 |
# Define a function to get the model's response
|
6 |
def get_response(context, question):
|