Update app.py
Browse files
app.py
CHANGED
@@ -114,14 +114,13 @@ with gr.Blocks() as demo:
|
|
114 |
p_txt3 = gr.Textbox(placeholder="Enter passage 3", info="Passage 3")
|
115 |
p_txt4 = gr.Textbox(placeholder="Enter passage 4", info="Passage 4")
|
116 |
p_txt5 = gr.Textbox(placeholder="Enter passage 5", info="Passage 5")
|
117 |
-
|
118 |
submit = gr.Button("Submit")
|
|
|
|
|
119 |
submit.click(
|
120 |
get_result,
|
121 |
[q_txt, p_txt1, p_txt2, p_txt3, p_txt4, p_txt5],
|
122 |
o_txt
|
123 |
)
|
124 |
-
|
125 |
-
o_txt = gr.Textbox(placeholder="Output", lines=10, interactive=False)
|
126 |
|
127 |
demo.launch()
|
|
|
114 |
p_txt3 = gr.Textbox(placeholder="Enter passage 3", info="Passage 3")
|
115 |
p_txt4 = gr.Textbox(placeholder="Enter passage 4", info="Passage 4")
|
116 |
p_txt5 = gr.Textbox(placeholder="Enter passage 5", info="Passage 5")
|
|
|
117 |
submit = gr.Button("Submit")
|
118 |
+
o_txt = gr.Textbox(placeholder="Output", lines=10, interactive=False)
|
119 |
+
|
120 |
submit.click(
|
121 |
get_result,
|
122 |
[q_txt, p_txt1, p_txt2, p_txt3, p_txt4, p_txt5],
|
123 |
o_txt
|
124 |
)
|
|
|
|
|
125 |
|
126 |
demo.launch()
|