Update app.py
Browse files
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="指令輸出",
|
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("執行指令")
|