Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from transformers import pipeline
|
|
3 |
|
4 |
pipe = pipeline("question-answering", model="huggingface-course/bert-finetuned-squad")
|
5 |
|
6 |
-
def qa(question,
|
7 |
return pipe(question=question, context=context)
|
8 |
|
9 |
with gr.Blocks() as demo:
|
|
|
3 |
|
4 |
pipe = pipeline("question-answering", model="huggingface-course/bert-finetuned-squad")
|
5 |
|
6 |
+
def qa(question, context):
|
7 |
return pipe(question=question, context=context)
|
8 |
|
9 |
with gr.Blocks() as demo:
|