Browse Source

Update colab.py

Iyashi 1 year ago
parent
commit
dcd26f3982
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      scripts/colab.py

+ 2
- 2
scripts/colab.py View File

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…
Cancel
Save