kimhung0011 commited on
Commit
11338f1
·
verified ·
1 Parent(s): 4e528b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -18,10 +18,7 @@ def answer_question(question, context):
18
 
19
  iface = gr.Interface(
20
  fn=answer_question,
21
- inputs=[
22
- gr.inputs.Textbox(label="Context"),
23
- gr.inputs.Textbox(label="Question")
24
- ],
25
  outputs="text",
26
  title="Hugging Face Question Answering"
27
  )
 
18
 
19
  iface = gr.Interface(
20
  fn=answer_question,
21
+ inputs=["text", "text"],
 
 
 
22
  outputs="text",
23
  title="Hugging Face Question Answering"
24
  )