Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -197,22 +197,16 @@ with gr.Blocks(
|
|
| 197 |
outputs=[output_box])
|
| 198 |
|
| 199 |
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
with gr.Tab("Command Viewer"):
|
| 204 |
with gr.Row():
|
| 205 |
with gr.Column(scale=10):
|
| 206 |
command_cmd = gr.Textbox(label="Command", placeholder="Enter a command")
|
| 207 |
with gr.Column(scale=1, min_width=BUTTON_MIN_WIDTH):
|
| 208 |
btn_cmd = gr.Button("Run Command")
|
| 209 |
-
output_cmd = gr.Textbox(label="Command Output", value="")
|
| 210 |
-
|
| 211 |
def on_button_click():
|
| 212 |
-
output_cmd.value = run_command(command_cmd.value)
|
| 213 |
-
|
| 214 |
-
btn_cmd.click(on_button_click)
|
| 215 |
-
|
| 216 |
|
| 217 |
|
| 218 |
if __name__ == "__main__":
|
|
|
|
| 197 |
outputs=[output_box])
|
| 198 |
|
| 199 |
|
|
|
|
|
|
|
|
|
|
| 200 |
with gr.Tab("Command Viewer"):
|
| 201 |
with gr.Row():
|
| 202 |
with gr.Column(scale=10):
|
| 203 |
command_cmd = gr.Textbox(label="Command", placeholder="Enter a command")
|
| 204 |
with gr.Column(scale=1, min_width=BUTTON_MIN_WIDTH):
|
| 205 |
btn_cmd = gr.Button("Run Command")
|
| 206 |
+
output_cmd = gr.Textbox(label="Command Output", value="")
|
|
|
|
| 207 |
def on_button_click():
|
| 208 |
+
output_cmd.value = run_command(command_cmd.value)
|
| 209 |
+
btn_cmd.click(on_button_click)
|
|
|
|
|
|
|
| 210 |
|
| 211 |
|
| 212 |
if __name__ == "__main__":
|