MarcBrun commited on
Commit
ebf3181
·
1 Parent(s): df60ccf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,5 +10,5 @@ def answer_question(question, answer_text):
10
 
11
  return answer["answer"], answer["score"]
12
 
13
- iface = gr.Interface(fn=answer_question, inputs=[gr.inputs.Textbox(lines=1, placeholder="Question Here...", label="Question"),gr.inputs.Textbox(lines=5, placeholder="Context Here...", label="Context")], outputs=[gr.outputs.Textbox(label="Answer"), gr.outputs.Textbox(label="Score")])
14
  iface.launch()
 
10
 
11
  return answer["answer"], answer["score"]
12
 
13
+ iface = gr.Interface(fn=answer_question, inputs=[gr.inputs.Textbox(lines=1, placeholder="Question Here...", label="Question"),gr.inputs.Textbox(lines=5, placeholder="Context Here...", label="Context")], outputs=gr.outputs.Textbox(label="Answer"))
14
  iface.launch()