Update app.py
Browse files
app.py
CHANGED
|
@@ -186,15 +186,15 @@ with gr.Blocks(theme='sudeepshouche/minimalist', css=custom_css) as demo:
|
|
| 186 |
dependency_plot = gr.Plot(render_dependency_tree(forms, edges, edge_labels), container=False)
|
| 187 |
|
| 188 |
source.submit(
|
| 189 |
-
fn=parse, inputs=[
|
| 190 |
)
|
| 191 |
submit.click(
|
| 192 |
-
fn=parse, inputs=[
|
| 193 |
)
|
| 194 |
dataset.click(
|
| 195 |
-
fn=lambda text: text, inputs=[
|
| 196 |
).then(
|
| 197 |
-
fn=parse, inputs=[
|
| 198 |
)
|
| 199 |
|
| 200 |
|
|
|
|
| 186 |
dependency_plot = gr.Plot(render_dependency_tree(forms, edges, edge_labels), container=False)
|
| 187 |
|
| 188 |
source.submit(
|
| 189 |
+
fn=parse, inputs=[source], outputs=[dependency_plot, table], queue=True
|
| 190 |
)
|
| 191 |
submit.click(
|
| 192 |
+
fn=parse, inputs=[source], outputs=[dependency_plot, table], queue=True
|
| 193 |
)
|
| 194 |
dataset.click(
|
| 195 |
+
fn=lambda text: text, inputs=[dataset], outputs=[source]
|
| 196 |
).then(
|
| 197 |
+
fn=parse, inputs=[source], outputs=[dependency_plot, table], queue=True
|
| 198 |
)
|
| 199 |
|
| 200 |
|