ruslanmv commited on
Commit
559b8d7
·
verified ·
1 Parent(s): 422be11

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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", run_function_on_click=True)
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