Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -199,6 +199,7 @@ with gr.Blocks(
|
|
199 |
|
200 |
|
201 |
|
|
|
202 |
with gr.Tab("Command Viewer"):
|
203 |
with gr.Row():
|
204 |
with gr.Column(scale=10):
|
@@ -206,12 +207,13 @@ with gr.Blocks(
|
|
206 |
with gr.Column(scale=1, min_width=BUTTON_MIN_WIDTH):
|
207 |
btn_cmd = gr.Button("Run Command")
|
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 |
-
|
|
|
215 |
|
216 |
if __name__ == "__main__":
|
217 |
demo.queue()
|
|
|
199 |
|
200 |
|
201 |
|
202 |
+
|
203 |
with gr.Tab("Command Viewer"):
|
204 |
with gr.Row():
|
205 |
with gr.Column(scale=10):
|
|
|
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="") # Use value instead of content
|
210 |
+
|
211 |
def on_button_click():
|
212 |
output_cmd.value = run_command(command_cmd.value) # Update value directly
|
213 |
+
|
214 |
btn_cmd.click(on_button_click)
|
215 |
+
|
216 |
+
|
217 |
|
218 |
if __name__ == "__main__":
|
219 |
demo.queue()
|