Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -206,14 +206,14 @@ with gr.Blocks(
|
|
206 |
result = run_command(input_text)
|
207 |
output_cmd.set_value(result)
|
208 |
|
209 |
-
|
210 |
with gr.Tab("Command Viewer"):
|
211 |
with gr.Row():
|
212 |
input_cmd = gr.Textbox(label="Command", placeholder="Enter a command")
|
213 |
output_cmd = gr.Label("", label="Command Output")
|
214 |
-
btn_cmd = gr.Button("Run Command"
|
215 |
-
|
216 |
btn_cmd.click(fn=on_click_run_command, inputs=[input_cmd], outputs=[output_cmd])
|
|
|
217 |
|
218 |
|
219 |
|
|
|
206 |
result = run_command(input_text)
|
207 |
output_cmd.set_value(result)
|
208 |
|
|
|
209 |
with gr.Tab("Command Viewer"):
|
210 |
with gr.Row():
|
211 |
input_cmd = gr.Textbox(label="Command", placeholder="Enter a command")
|
212 |
output_cmd = gr.Label("", label="Command Output")
|
213 |
+
btn_cmd = gr.Button(onclick=on_click_run_command, text="Run Command")
|
214 |
+
|
215 |
btn_cmd.click(fn=on_click_run_command, inputs=[input_cmd], outputs=[output_cmd])
|
216 |
+
|
217 |
|
218 |
|
219 |
|