makram commited on
Commit
644ccb4
·
verified ·
1 Parent(s): 08cc483

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, answer):
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: