HelloSun commited on
Commit
50fb79c
·
verified ·
1 Parent(s): 8639f49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,8 +17,8 @@ def gradio_app():
17
 
18
  # 創建 Gradio 界面
19
  with gr.Blocks() as demo:
20
- command_input = gr.Textbox(label="輸入指令", placeholder="輸入你要執行的 Bash 指令")
21
- command_output = gr.Textbox(label="指令輸出", lines=24, cols=80, placeholder="指令的輸出結果", readonly=True)
22
 
23
  # 設置按鈕和回調函數
24
  execute_button = gr.Button("執行指令")
 
17
 
18
  # 創建 Gradio 界面
19
  with gr.Blocks() as demo:
20
+ command_input = gr.Textbox(label="輸入指令", placeholder="輸入你要執行的 Bash 指令", lines=1)
21
+ command_output = gr.Textbox(label="指令輸出", placeholder="指令的輸出結果", lines=24, interactive=False)
22
 
23
  # 設置按鈕和回調函數
24
  execute_button = gr.Button("執行指令")