瀏覽代碼

Update colab.py

Iyashi 2 年之前
父節點
當前提交
dcd26f3982
No account linked to committer's email address
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      scripts/colab.py

+ 2
- 2
scripts/colab.py 查看文件

8
     return out
8
     return out
9
 
9
 
10
 def on_ui_tabs():     
10
 def on_ui_tabs():     
11
-    with gr.Blocks() as ccolab:
11
+    with gr.Blocks() as terminal:
12
         gr.Markdown(
12
         gr.Markdown(
13
         """
13
         """
14
         ### Google Colab Manually Run Command
14
         ### Google Colab Manually Run Command
22
                 out_text = gr.Textbox(label="Output Results (no need to scroll down if the output code has appeared, if the output code appears, the code sign is complete)", placeholder="outputs")
22
                 out_text = gr.Textbox(label="Output Results (no need to scroll down if the output code has appeared, if the output code appears, the code sign is complete)", placeholder="outputs")
23
                 btn_run = gr.Button("run command")
23
                 btn_run = gr.Button("run command")
24
                 btn_run.click(fn=run, inputs=command, outputs=out_text)
24
                 btn_run.click(fn=run, inputs=command, outputs=out_text)
25
-    return (ccolab, "C Colab", "ccolab"),
25
+    return (terminal, "Colab Terminal", "terminal"),
26
 script_callbacks.on_ui_tabs(on_ui_tabs)
26
 script_callbacks.on_ui_tabs(on_ui_tabs)

Loading…
取消
儲存