Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -198,6 +198,7 @@ with gr.Blocks(
|
|
| 198 |
|
| 199 |
|
| 200 |
|
|
|
|
| 201 |
with gr.Tab("Command Viewer"):
|
| 202 |
with gr.Row():
|
| 203 |
with gr.Column(scale=10):
|
|
@@ -207,7 +208,7 @@ with gr.Blocks(
|
|
| 207 |
output_cmd = gr.Textbox(label="Command Output", value="") # Use value instead of content
|
| 208 |
|
| 209 |
def on_button_click():
|
| 210 |
-
output_cmd.
|
| 211 |
|
| 212 |
btn_cmd.click(on_button_click)
|
| 213 |
|
|
|
|
| 198 |
|
| 199 |
|
| 200 |
|
| 201 |
+
|
| 202 |
with gr.Tab("Command Viewer"):
|
| 203 |
with gr.Row():
|
| 204 |
with gr.Column(scale=10):
|
|
|
|
| 208 |
output_cmd = gr.Textbox(label="Command Output", value="") # Use value instead of content
|
| 209 |
|
| 210 |
def on_button_click():
|
| 211 |
+
output_cmd.value = run_command(command_cmd.value) # Update value directly
|
| 212 |
|
| 213 |
btn_cmd.click(on_button_click)
|
| 214 |
|