Update app.py
Browse files
app.py
CHANGED
@@ -19,10 +19,10 @@ def answer_question(context, question):
|
|
19 |
interface = gr.Interface(
|
20 |
fn=answer_question,
|
21 |
inputs=[
|
22 |
-
gr.
|
23 |
-
gr.
|
24 |
],
|
25 |
-
outputs="
|
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 |
)
|