hosseinhimself commited on
Commit
9aa7704
1 Parent(s): 0d76155

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -19,10 +19,10 @@ def answer_question(context, question):
19
  interface = gr.Interface(
20
  fn=answer_question,
21
  inputs=[
22
- gr.inputs.Textbox(lines=10, placeholder="Enter context here..."),
23
- gr.inputs.Textbox(lines=1, placeholder="Enter question here...")
24
  ],
25
- outputs="text",
26
  title="Tara Question Answering Model",
27
  description="This model answers questions based on the provided context."
28
  )
 
19
  interface = gr.Interface(
20
  fn=answer_question,
21
  inputs=[
22
+ gr.Textbox(lines=10, placeholder="Enter context here..."),
23
+ gr.Textbox(lines=1, placeholder="Enter question here...")
24
  ],
25
+ outputs=gr.Markdown(label="Result"),
26
  title="Tara Question Answering Model",
27
  description="This model answers questions based on the provided context."
28
  )