NITs
Browse files- actions.py +0 -4
- app.py +3 -1
actions.py
CHANGED
@@ -75,10 +75,6 @@ def remove_task(*visibility):
|
|
75 |
)
|
76 |
|
77 |
|
78 |
-
def _clear_error():
|
79 |
-
return gr.HighlightedText.update(value=None, visible=False)
|
80 |
-
|
81 |
-
|
82 |
def execute_task(id_: int, prev_error_value, n_task_inputs, *vars_in_scope):
|
83 |
"""
|
84 |
Params:
|
|
|
75 |
)
|
76 |
|
77 |
|
|
|
|
|
|
|
|
|
78 |
def execute_task(id_: int, prev_error_value, n_task_inputs, *vars_in_scope):
|
79 |
"""
|
80 |
Params:
|
app.py
CHANGED
@@ -72,7 +72,9 @@ with gr.Blocks() as demo:
|
|
72 |
|
73 |
# Sequential execution
|
74 |
execution_event = execute_btn.click(
|
75 |
-
|
|
|
|
|
76 |
)
|
77 |
for i, task in all_tasks.items():
|
78 |
execution_event = execution_event.then(
|
|
|
72 |
|
73 |
# Sequential execution
|
74 |
execution_event = execute_btn.click(
|
75 |
+
lambda _: gr.HighlightedText.update(value=None, visible=False),
|
76 |
+
inputs=[],
|
77 |
+
outputs=[error_message],
|
78 |
)
|
79 |
for i, task in all_tasks.items():
|
80 |
execution_event = execution_event.then(
|