Spaces:
Running
Running
Edward J. Schwartz commited on
Commit ·
17ac6a1
1
Parent(s): dd17a03
Show Running… on the Run button while a run is in progress
Browse files
app.py
CHANGED
|
@@ -94,7 +94,9 @@ with gr.Blocks(title="cuobjdump / nvdisasm") as demo:
|
|
| 94 |
gr.Code(output, label=label, max_lines=60)
|
| 95 |
|
| 96 |
tool.change(select_tool, tool, [outputs, modifiers, extra])
|
| 97 |
-
btn.click(
|
|
|
|
|
|
|
| 98 |
|
| 99 |
if __name__ == "__main__":
|
| 100 |
demo.launch()
|
|
|
|
| 94 |
gr.Code(output, label=label, max_lines=60)
|
| 95 |
|
| 96 |
tool.change(select_tool, tool, [outputs, modifiers, extra])
|
| 97 |
+
(btn.click(lambda: gr.Button("Running…", interactive=False), None, btn)
|
| 98 |
+
.then(run, [file, tool, outputs, modifiers, extra], results)
|
| 99 |
+
.then(lambda: gr.Button("Run", interactive=True), None, btn))
|
| 100 |
|
| 101 |
if __name__ == "__main__":
|
| 102 |
demo.launch()
|