ruslanmv commited on
Commit
5b4a76b
·
verified ·
1 Parent(s): 78fe2de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -12
app.py CHANGED
@@ -199,17 +199,6 @@ with gr.Blocks(
199
  outputs=[output_box])
200
 
201
 
202
- with gr.Tab("Command Viewer"):
203
- with gr.Row():
204
- input_cmd = gr.Textbox(label="Command", placeholder="Enter a command")
205
- output_cmd = gr.Label("", label="Command Output")
206
- btn_cmd = gr.Button("Run Command")
207
-
208
- btn_cmd.click(fn=run_command,
209
- inputs=[input_cmd.value],
210
- outputs=[output_cmd.text])
211
-
212
-
213
 
214
  with gr.Tab("Command Viewer"):
215
  with gr.Row():
@@ -217,7 +206,7 @@ with gr.Blocks(
217
  output_cmd = gr.Label("", label="Command Output")
218
  btn_cmd = gr.Button("Run Command", run_function_on_click=True)
219
 
220
- btn_cmd.click(run_command, inputs=input_cmd.value, outputs=output_cmd)
221
 
222
 
223
 
 
199
  outputs=[output_box])
200
 
201
 
 
 
 
 
 
 
 
 
 
 
 
202
 
203
  with gr.Tab("Command Viewer"):
204
  with gr.Row():
 
206
  output_cmd = gr.Label("", label="Command Output")
207
  btn_cmd = gr.Button("Run Command", run_function_on_click=True)
208
 
209
+ btn_cmd.click(run_command, inputs=str(input_cmd), outputs=str(output_cmd))
210
 
211
 
212