Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,14 +10,8 @@ def func(context, question):
|
|
10 |
result = pipe(question = question, context=context)
|
11 |
return result['answer']
|
12 |
|
13 |
-
|
14 |
-
text_input = gr.Textbox(lines=10, placeholder="Enter your text here", label="Your Text")
|
15 |
-
text_outputs = gr.Textbox(lines=10)
|
16 |
-
# submit_btn = gr.Button(value="Generate",variant="secondary")
|
17 |
-
|
18 |
interface = gr.Interface(
|
19 |
fn=func,
|
20 |
-
inputs=text_input,
|
21 |
inputs=[gr.Textbox(lines=7, label="Context paragraph"), gr.Textbox(lines=2, label="Question")],
|
22 |
outputs=[gr.Textbox(label="Answer"), gr.Textbox(label="Score")],
|
23 |
# submit_btn=submit_btn,
|
|
|
10 |
result = pipe(question = question, context=context)
|
11 |
return result['answer']
|
12 |
|
|
|
|
|
|
|
|
|
|
|
13 |
interface = gr.Interface(
|
14 |
fn=func,
|
|
|
15 |
inputs=[gr.Textbox(lines=7, label="Context paragraph"), gr.Textbox(lines=2, label="Question")],
|
16 |
outputs=[gr.Textbox(label="Answer"), gr.Textbox(label="Score")],
|
17 |
# submit_btn=submit_btn,
|