add zrok
Browse files- files_cells/notebooks/en/downloading_en.ipynb +2 -1
- files_cells/notebooks/en/launch_en.ipynb +6 -0
- files_cells/notebooks/en/widgets_en.ipynb +11 -3
- files_cells/notebooks/ru/downloading_ru.ipynb +2 -1
- files_cells/notebooks/ru/launch_ru.ipynb +6 -0
- files_cells/notebooks/ru/widgets_ru.ipynb +11 -3
- files_cells/python/en/downloading_en.py +2 -1
- files_cells/python/en/launch_en.py +6 -0
- files_cells/python/en/widgets_en.py +11 -3
- files_cells/python/ru/downloading_ru.py +2 -1
- files_cells/python/ru/launch_ru.py +6 -0
- files_cells/python/ru/widgets_ru.py +11 -3
files_cells/notebooks/en/downloading_en.ipynb
CHANGED
@@ -76,6 +76,7 @@
|
|
76 |
" !curl -s -OL https://github.com/DEX-1101/sd-webui-notebook/raw/main/res/new_tunnel --output-dir {root_path}\n",
|
77 |
" !curl -s -Lo /usr/bin/cl https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 && chmod +x /usr/bin/cl\n",
|
78 |
" !pip install insightface\n",
|
|
|
79 |
"\n",
|
80 |
" if env == \"SageMaker Studio Lab\":\n",
|
81 |
" %pip install -q opencv-python-headless huggingface-hub\n",
|
@@ -114,7 +115,7 @@
|
|
114 |
" 'Vae', 'Vae_Num',\n",
|
115 |
" 'latest_webui', 'latest_exstensions', 'detailed_download',\n",
|
116 |
" 'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',\n",
|
117 |
-
" 'ngrok_token', 'commandline_arguments',\n",
|
118 |
" 'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'\n",
|
119 |
"]\n",
|
120 |
"\n",
|
|
|
76 |
" !curl -s -OL https://github.com/DEX-1101/sd-webui-notebook/raw/main/res/new_tunnel --output-dir {root_path}\n",
|
77 |
" !curl -s -Lo /usr/bin/cl https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 && chmod +x /usr/bin/cl\n",
|
78 |
" !pip install insightface\n",
|
79 |
+
" !curl -sLO https://github.com/openziti/zrok/releases/download/v0.4.23/zrok_0.4.23_linux_amd64.tar.gz && tar -xzf zrok_0.4.23_linux_amd64.tar.gz -C /usr/bin && rm -f zrok_0.4.23_linux_amd64.tar.gz\n",
|
80 |
"\n",
|
81 |
" if env == \"SageMaker Studio Lab\":\n",
|
82 |
" %pip install -q opencv-python-headless huggingface-hub\n",
|
|
|
115 |
" 'Vae', 'Vae_Num',\n",
|
116 |
" 'latest_webui', 'latest_exstensions', 'detailed_download',\n",
|
117 |
" 'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',\n",
|
118 |
+
" 'ngrok_token', 'zrok_token', 'commandline_arguments',\n",
|
119 |
" 'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'\n",
|
120 |
"]\n",
|
121 |
"\n",
|
files_cells/notebooks/en/launch_en.ipynb
CHANGED
@@ -58,6 +58,7 @@
|
|
58 |
"\n",
|
59 |
"settings = load_settings()\n",
|
60 |
"ngrok_token = settings['ngrok_token']\n",
|
|
|
61 |
"commandline_arguments = settings['commandline_arguments']\n",
|
62 |
"\n",
|
63 |
"\n",
|
@@ -82,6 +83,11 @@
|
|
82 |
" tunnel = tunnel_class(tunnel_port)\n",
|
83 |
" tunnel.add_tunnel(command=\"cl tunnel --url localhost:{port}\", name=\"cl\", pattern=re.compile(r\"[\\w-]+\\.trycloudflare\\.com\"))\n",
|
84 |
" tunnel.add_tunnel(command=\"lt --port {port}\", name=\"lt\", pattern=re.compile(r\"[\\w-]+\\.loca\\.lt\"), note=\"Password : \" + \"\\033[32m\" + public_ipv4 + \"\\033[0m\" + \" rerun cell if 404 error.\")\n",
|
|
|
|
|
|
|
|
|
|
|
85 |
"# ======================== TUNNEL ========================\n",
|
86 |
"\n",
|
87 |
"\n",
|
|
|
58 |
"\n",
|
59 |
"settings = load_settings()\n",
|
60 |
"ngrok_token = settings['ngrok_token']\n",
|
61 |
+
"zrok_token = settings['zrok_token']\n",
|
62 |
"commandline_arguments = settings['commandline_arguments']\n",
|
63 |
"\n",
|
64 |
"\n",
|
|
|
83 |
" tunnel = tunnel_class(tunnel_port)\n",
|
84 |
" tunnel.add_tunnel(command=\"cl tunnel --url localhost:{port}\", name=\"cl\", pattern=re.compile(r\"[\\w-]+\\.trycloudflare\\.com\"))\n",
|
85 |
" tunnel.add_tunnel(command=\"lt --port {port}\", name=\"lt\", pattern=re.compile(r\"[\\w-]+\\.loca\\.lt\"), note=\"Password : \" + \"\\033[32m\" + public_ipv4 + \"\\033[0m\" + \" rerun cell if 404 error.\")\n",
|
86 |
+
"\n",
|
87 |
+
"''' add zrok tunnel '''\n",
|
88 |
+
"if zrok_token:\n",
|
89 |
+
" !zrok enable {zrok_token} &> /dev/null\n",
|
90 |
+
" tunnel.add_tunnel(command=\"zrok share public http://localhost:{port}/ --headless\", name=\"zrok\", pattern=re.compile(r\"[\\w-]+\\.share\\.zrok\\.io\"))\n",
|
91 |
"# ======================== TUNNEL ========================\n",
|
92 |
"\n",
|
93 |
"\n",
|
files_cells/notebooks/en/widgets_en.ipynb
CHANGED
@@ -117,6 +117,11 @@
|
|
117 |
" opacity: 0.25;\n",
|
118 |
"}\n",
|
119 |
"\n",
|
|
|
|
|
|
|
|
|
|
|
120 |
"\n",
|
121 |
"/* Container style */\n",
|
122 |
"\n",
|
@@ -300,7 +305,7 @@
|
|
300 |
"\n",
|
301 |
".button_ngrok:hover {\n",
|
302 |
" cursor: pointer;\n",
|
303 |
-
" background-image: radial-gradient(circle at top left, purple 10%, #
|
304 |
" background-size: 200% 200%;\n",
|
305 |
" background-position: right bottom;\n",
|
306 |
" transform: translateY(1px);\n",
|
@@ -504,12 +509,15 @@
|
|
504 |
"ngrok_token_widget = widgets.Text(description='Ngrok Token:', style=style, layout=widgets.Layout(width='1047px'))\n",
|
505 |
"ngrock_button = widgets.HTML('<a href=\"https://dashboard.ngrok.com/get-started/your-authtoken\" target=\"_blank\">Get Ngrok Token</a>').add_class(\"button_ngrok\")\n",
|
506 |
"ngrok_widget = widgets.HBox([ngrok_token_widget, ngrock_button], style=style, layout=layout)\n",
|
|
|
|
|
|
|
507 |
"# ---\n",
|
508 |
"commandline_arguments_options = \"--listen --enable-insecure-extension-access --theme dark --no-half-vae --disable-console-progressbars --xformers\"\n",
|
509 |
"commandline_arguments_widget = widgets.Text(description='Arguments:', value=commandline_arguments_options, style=style, layout=layout)\n",
|
510 |
"\n",
|
511 |
"''' Display Additional'''\n",
|
512 |
-
"additional_widget_list = [additional_header, latest_changes_widget, HR, controlnet_widget, controlnet_Num_widget, commit_hash_widget, optional_huggingface_token_widget, ngrok_widget, HR, commandline_arguments_widget]\n",
|
513 |
"if free_plan and env == \"Google Colab\":\n",
|
514 |
" additional_widget_list.remove(ngrok_widget)\n",
|
515 |
"# ```\n",
|
@@ -569,7 +577,7 @@
|
|
569 |
" 'Vae', 'Vae_Num',\n",
|
570 |
" 'latest_webui', 'latest_exstensions', 'detailed_download',\n",
|
571 |
" 'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',\n",
|
572 |
-
" 'ngrok_token', 'commandline_arguments',\n",
|
573 |
" 'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'\n",
|
574 |
"]\n",
|
575 |
"\n",
|
|
|
117 |
" opacity: 0.25;\n",
|
118 |
"}\n",
|
119 |
"\n",
|
120 |
+
"a {\n",
|
121 |
+
" text-decoration: none;\n",
|
122 |
+
" color: inherit;\n",
|
123 |
+
"}\n",
|
124 |
+
"\n",
|
125 |
"\n",
|
126 |
"/* Container style */\n",
|
127 |
"\n",
|
|
|
305 |
"\n",
|
306 |
".button_ngrok:hover {\n",
|
307 |
" cursor: pointer;\n",
|
308 |
+
" background-image: radial-gradient(circle at top left, purple 10%, #1D94BB 90%);\n",
|
309 |
" background-size: 200% 200%;\n",
|
310 |
" background-position: right bottom;\n",
|
311 |
" transform: translateY(1px);\n",
|
|
|
509 |
"ngrok_token_widget = widgets.Text(description='Ngrok Token:', style=style, layout=widgets.Layout(width='1047px'))\n",
|
510 |
"ngrock_button = widgets.HTML('<a href=\"https://dashboard.ngrok.com/get-started/your-authtoken\" target=\"_blank\">Get Ngrok Token</a>').add_class(\"button_ngrok\")\n",
|
511 |
"ngrok_widget = widgets.HBox([ngrok_token_widget, ngrock_button], style=style, layout=layout)\n",
|
512 |
+
"zrok_token_widget = widgets.Text(description='Zrok Token:', style=style, layout=widgets.Layout(width='1047px'))\n",
|
513 |
+
"zrok_button = widgets.HTML('<a href=\"https://colab.research.google.com/drive/1d2sjWDJi_GYBUavrHSuQyHTDuLy36WpU\" target=\"_blank\">Reg Zrok Token</a>').add_class(\"button_ngrok\")\n",
|
514 |
+
"zrok_widget = widgets.HBox([zrok_token_widget, zrok_button], style=style, layout=layout)\n",
|
515 |
"# ---\n",
|
516 |
"commandline_arguments_options = \"--listen --enable-insecure-extension-access --theme dark --no-half-vae --disable-console-progressbars --xformers\"\n",
|
517 |
"commandline_arguments_widget = widgets.Text(description='Arguments:', value=commandline_arguments_options, style=style, layout=layout)\n",
|
518 |
"\n",
|
519 |
"''' Display Additional'''\n",
|
520 |
+
"additional_widget_list = [additional_header, latest_changes_widget, HR, controlnet_widget, controlnet_Num_widget, commit_hash_widget, optional_huggingface_token_widget, ngrok_widget, zrok_widget, HR, commandline_arguments_widget]\n",
|
521 |
"if free_plan and env == \"Google Colab\":\n",
|
522 |
" additional_widget_list.remove(ngrok_widget)\n",
|
523 |
"# ```\n",
|
|
|
577 |
" 'Vae', 'Vae_Num',\n",
|
578 |
" 'latest_webui', 'latest_exstensions', 'detailed_download',\n",
|
579 |
" 'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',\n",
|
580 |
+
" 'ngrok_token', 'zrok_token', 'commandline_arguments',\n",
|
581 |
" 'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'\n",
|
582 |
"]\n",
|
583 |
"\n",
|
files_cells/notebooks/ru/downloading_ru.ipynb
CHANGED
@@ -76,6 +76,7 @@
|
|
76 |
" !curl -s -OL https://github.com/DEX-1101/sd-webui-notebook/raw/main/res/new_tunnel --output-dir {root_path}\n",
|
77 |
" !curl -s -Lo /usr/bin/cl https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 && chmod +x /usr/bin/cl\n",
|
78 |
" !pip install insightface\n",
|
|
|
79 |
"\n",
|
80 |
" if env == \"SageMaker Studio Lab\":\n",
|
81 |
" %pip install -q opencv-python-headless huggingface-hub\n",
|
@@ -114,7 +115,7 @@
|
|
114 |
" 'Vae', 'Vae_Num',\n",
|
115 |
" 'latest_webui', 'latest_exstensions', 'detailed_download',\n",
|
116 |
" 'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',\n",
|
117 |
-
" 'ngrok_token', 'commandline_arguments',\n",
|
118 |
" 'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'\n",
|
119 |
"]\n",
|
120 |
"\n",
|
|
|
76 |
" !curl -s -OL https://github.com/DEX-1101/sd-webui-notebook/raw/main/res/new_tunnel --output-dir {root_path}\n",
|
77 |
" !curl -s -Lo /usr/bin/cl https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 && chmod +x /usr/bin/cl\n",
|
78 |
" !pip install insightface\n",
|
79 |
+
" !curl -sLO https://github.com/openziti/zrok/releases/download/v0.4.23/zrok_0.4.23_linux_amd64.tar.gz && tar -xzf zrok_0.4.23_linux_amd64.tar.gz -C /usr/bin && rm -f zrok_0.4.23_linux_amd64.tar.gz\n",
|
80 |
"\n",
|
81 |
" if env == \"SageMaker Studio Lab\":\n",
|
82 |
" %pip install -q opencv-python-headless huggingface-hub\n",
|
|
|
115 |
" 'Vae', 'Vae_Num',\n",
|
116 |
" 'latest_webui', 'latest_exstensions', 'detailed_download',\n",
|
117 |
" 'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',\n",
|
118 |
+
" 'ngrok_token', 'zrok_token', 'commandline_arguments',\n",
|
119 |
" 'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'\n",
|
120 |
"]\n",
|
121 |
"\n",
|
files_cells/notebooks/ru/launch_ru.ipynb
CHANGED
@@ -58,6 +58,7 @@
|
|
58 |
"\n",
|
59 |
"settings = load_settings()\n",
|
60 |
"ngrok_token = settings['ngrok_token']\n",
|
|
|
61 |
"commandline_arguments = settings['commandline_arguments']\n",
|
62 |
"\n",
|
63 |
"\n",
|
@@ -82,6 +83,11 @@
|
|
82 |
" tunnel = tunnel_class(tunnel_port)\n",
|
83 |
" tunnel.add_tunnel(command=\"cl tunnel --url localhost:{port}\", name=\"cl\", pattern=re.compile(r\"[\\w-]+\\.trycloudflare\\.com\"))\n",
|
84 |
" tunnel.add_tunnel(command=\"lt --port {port}\", name=\"lt\", pattern=re.compile(r\"[\\w-]+\\.loca\\.lt\"), note=\"Password : \" + \"\\033[32m\" + public_ipv4 + \"\\033[0m\" + \" rerun cell if 404 error.\")\n",
|
|
|
|
|
|
|
|
|
|
|
85 |
"# ======================== TUNNEL ========================\n",
|
86 |
"\n",
|
87 |
"\n",
|
|
|
58 |
"\n",
|
59 |
"settings = load_settings()\n",
|
60 |
"ngrok_token = settings['ngrok_token']\n",
|
61 |
+
"zrok_token = settings['zrok_token']\n",
|
62 |
"commandline_arguments = settings['commandline_arguments']\n",
|
63 |
"\n",
|
64 |
"\n",
|
|
|
83 |
" tunnel = tunnel_class(tunnel_port)\n",
|
84 |
" tunnel.add_tunnel(command=\"cl tunnel --url localhost:{port}\", name=\"cl\", pattern=re.compile(r\"[\\w-]+\\.trycloudflare\\.com\"))\n",
|
85 |
" tunnel.add_tunnel(command=\"lt --port {port}\", name=\"lt\", pattern=re.compile(r\"[\\w-]+\\.loca\\.lt\"), note=\"Password : \" + \"\\033[32m\" + public_ipv4 + \"\\033[0m\" + \" rerun cell if 404 error.\")\n",
|
86 |
+
"\n",
|
87 |
+
"''' add zrok tunnel '''\n",
|
88 |
+
"if zrok_token:\n",
|
89 |
+
" get_ipython().system('zrok enable {zrok_token} &> /dev/null')\n",
|
90 |
+
" tunnel.add_tunnel(command=\"zrok share public http://localhost:{port}/ --headless\", name=\"zrok\", pattern=re.compile(r\"[\\w-]+\\.share\\.zrok\\.io\"))\n",
|
91 |
"# ======================== TUNNEL ========================\n",
|
92 |
"\n",
|
93 |
"\n",
|
files_cells/notebooks/ru/widgets_ru.ipynb
CHANGED
@@ -117,6 +117,11 @@
|
|
117 |
" opacity: 0.25;\n",
|
118 |
"}\n",
|
119 |
"\n",
|
|
|
|
|
|
|
|
|
|
|
120 |
"\n",
|
121 |
"/* Container style */\n",
|
122 |
"\n",
|
@@ -300,7 +305,7 @@
|
|
300 |
"\n",
|
301 |
".button_ngrok:hover {\n",
|
302 |
" cursor: pointer;\n",
|
303 |
-
" background-image: radial-gradient(circle at top left, purple 10%, #
|
304 |
" background-size: 200% 200%;\n",
|
305 |
" background-position: right bottom;\n",
|
306 |
" transform: translateY(1px);\n",
|
@@ -504,12 +509,15 @@
|
|
504 |
"ngrok_token_widget = widgets.Text(description='Токен Ngrok:', style=style, layout=widgets.Layout(width='1047px'))\n",
|
505 |
"ngrock_button = widgets.HTML('<a href=\"https://dashboard.ngrok.com/get-started/your-authtoken\" target=\"_blank\">Получить Ngrok Токен</a>').add_class(\"button_ngrok\")\n",
|
506 |
"ngrok_widget = widgets.HBox([ngrok_token_widget, ngrock_button], style=style, layout=layout)\n",
|
|
|
|
|
|
|
507 |
"# ---\n",
|
508 |
"commandline_arguments_options = \"--listen --enable-insecure-extension-access --theme dark --no-half-vae --disable-console-progressbars --xformers\"\n",
|
509 |
"commandline_arguments_widget = widgets.Text(description='Аргументы:', value=commandline_arguments_options, style=style, layout=layout)\n",
|
510 |
"\n",
|
511 |
"''' Display Additional'''\n",
|
512 |
-
"additional_widget_list = [additional_header, latest_changes_widget, HR, controlnet_widget, controlnet_Num_widget, commit_hash_widget, optional_huggingface_token_widget, ngrok_widget, HR, commandline_arguments_widget]\n",
|
513 |
"if free_plan and env == \"Google Colab\":\n",
|
514 |
" additional_widget_list.remove(ngrok_widget)\n",
|
515 |
"# ```\n",
|
@@ -569,7 +577,7 @@
|
|
569 |
" 'Vae', 'Vae_Num',\n",
|
570 |
" 'latest_webui', 'latest_exstensions', 'detailed_download',\n",
|
571 |
" 'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',\n",
|
572 |
-
" 'ngrok_token', 'commandline_arguments',\n",
|
573 |
" 'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'\n",
|
574 |
"]\n",
|
575 |
"\n",
|
|
|
117 |
" opacity: 0.25;\n",
|
118 |
"}\n",
|
119 |
"\n",
|
120 |
+
"a {\n",
|
121 |
+
" text-decoration: none;\n",
|
122 |
+
" color: inherit;\n",
|
123 |
+
"}\n",
|
124 |
+
"\n",
|
125 |
"\n",
|
126 |
"/* Container style */\n",
|
127 |
"\n",
|
|
|
305 |
"\n",
|
306 |
".button_ngrok:hover {\n",
|
307 |
" cursor: pointer;\n",
|
308 |
+
" background-image: radial-gradient(circle at top left, purple 10%, #1D94BB 90%);\n",
|
309 |
" background-size: 200% 200%;\n",
|
310 |
" background-position: right bottom;\n",
|
311 |
" transform: translateY(1px);\n",
|
|
|
509 |
"ngrok_token_widget = widgets.Text(description='Токен Ngrok:', style=style, layout=widgets.Layout(width='1047px'))\n",
|
510 |
"ngrock_button = widgets.HTML('<a href=\"https://dashboard.ngrok.com/get-started/your-authtoken\" target=\"_blank\">Получить Ngrok Токен</a>').add_class(\"button_ngrok\")\n",
|
511 |
"ngrok_widget = widgets.HBox([ngrok_token_widget, ngrock_button], style=style, layout=layout)\n",
|
512 |
+
"zrok_token_widget = widgets.Text(description='Zrok Token:', style=style, layout=widgets.Layout(width='1047px'))\n",
|
513 |
+
"zrok_button = widgets.HTML('<a href=\"https://colab.research.google.com/drive/1d2sjWDJi_GYBUavrHSuQyHTDuLy36WpU\" target=\"_blank\">Зарегать Zrok Токен</a>').add_class(\"button_ngrok\")\n",
|
514 |
+
"zrok_widget = widgets.HBox([zrok_token_widget, zrok_button], style=style, layout=layout)\n",
|
515 |
"# ---\n",
|
516 |
"commandline_arguments_options = \"--listen --enable-insecure-extension-access --theme dark --no-half-vae --disable-console-progressbars --xformers\"\n",
|
517 |
"commandline_arguments_widget = widgets.Text(description='Аргументы:', value=commandline_arguments_options, style=style, layout=layout)\n",
|
518 |
"\n",
|
519 |
"''' Display Additional'''\n",
|
520 |
+
"additional_widget_list = [additional_header, latest_changes_widget, HR, controlnet_widget, controlnet_Num_widget, commit_hash_widget, optional_huggingface_token_widget, ngrok_widget, zrok_widget, HR, commandline_arguments_widget]\n",
|
521 |
"if free_plan and env == \"Google Colab\":\n",
|
522 |
" additional_widget_list.remove(ngrok_widget)\n",
|
523 |
"# ```\n",
|
|
|
577 |
" 'Vae', 'Vae_Num',\n",
|
578 |
" 'latest_webui', 'latest_exstensions', 'detailed_download',\n",
|
579 |
" 'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',\n",
|
580 |
+
" 'ngrok_token', 'zrok_token', 'commandline_arguments',\n",
|
581 |
" 'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'\n",
|
582 |
"]\n",
|
583 |
"\n",
|
files_cells/python/en/downloading_en.py
CHANGED
@@ -57,6 +57,7 @@ if not os.path.exists(flag_file):
|
|
57 |
get_ipython().system('curl -s -OL https://github.com/DEX-1101/sd-webui-notebook/raw/main/res/new_tunnel --output-dir {root_path}')
|
58 |
get_ipython().system('curl -s -Lo /usr/bin/cl https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 && chmod +x /usr/bin/cl')
|
59 |
get_ipython().system('pip install insightface')
|
|
|
60 |
|
61 |
if env == "SageMaker Studio Lab":
|
62 |
get_ipython().run_line_magic('pip', 'install -q opencv-python-headless huggingface-hub')
|
@@ -95,7 +96,7 @@ variables = [
|
|
95 |
'Vae', 'Vae_Num',
|
96 |
'latest_webui', 'latest_exstensions', 'detailed_download',
|
97 |
'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',
|
98 |
-
'ngrok_token', 'commandline_arguments',
|
99 |
'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'
|
100 |
]
|
101 |
|
|
|
57 |
get_ipython().system('curl -s -OL https://github.com/DEX-1101/sd-webui-notebook/raw/main/res/new_tunnel --output-dir {root_path}')
|
58 |
get_ipython().system('curl -s -Lo /usr/bin/cl https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 && chmod +x /usr/bin/cl')
|
59 |
get_ipython().system('pip install insightface')
|
60 |
+
get_ipython().system('curl -sLO https://github.com/openziti/zrok/releases/download/v0.4.23/zrok_0.4.23_linux_amd64.tar.gz && tar -xzf zrok_0.4.23_linux_amd64.tar.gz -C /usr/bin && rm -f zrok_0.4.23_linux_amd64.tar.gz')
|
61 |
|
62 |
if env == "SageMaker Studio Lab":
|
63 |
get_ipython().run_line_magic('pip', 'install -q opencv-python-headless huggingface-hub')
|
|
|
96 |
'Vae', 'Vae_Num',
|
97 |
'latest_webui', 'latest_exstensions', 'detailed_download',
|
98 |
'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',
|
99 |
+
'ngrok_token', 'zrok_token', 'commandline_arguments',
|
100 |
'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'
|
101 |
]
|
102 |
|
files_cells/python/en/launch_en.py
CHANGED
@@ -34,6 +34,7 @@ def load_settings():
|
|
34 |
|
35 |
settings = load_settings()
|
36 |
ngrok_token = settings['ngrok_token']
|
|
|
37 |
commandline_arguments = settings['commandline_arguments']
|
38 |
|
39 |
|
@@ -58,6 +59,11 @@ if env != "SageMaker Studio Lab":
|
|
58 |
tunnel = tunnel_class(tunnel_port)
|
59 |
tunnel.add_tunnel(command="cl tunnel --url localhost:{port}", name="cl", pattern=re.compile(r"[\w-]+\.trycloudflare\.com"))
|
60 |
tunnel.add_tunnel(command="lt --port {port}", name="lt", pattern=re.compile(r"[\w-]+\.loca\.lt"), note="Password : " + "\033[32m" + public_ipv4 + "\033[0m" + " rerun cell if 404 error.")
|
|
|
|
|
|
|
|
|
|
|
61 |
# ======================== TUNNEL ========================
|
62 |
|
63 |
|
|
|
34 |
|
35 |
settings = load_settings()
|
36 |
ngrok_token = settings['ngrok_token']
|
37 |
+
zrok_token = settings['zrok_token']
|
38 |
commandline_arguments = settings['commandline_arguments']
|
39 |
|
40 |
|
|
|
59 |
tunnel = tunnel_class(tunnel_port)
|
60 |
tunnel.add_tunnel(command="cl tunnel --url localhost:{port}", name="cl", pattern=re.compile(r"[\w-]+\.trycloudflare\.com"))
|
61 |
tunnel.add_tunnel(command="lt --port {port}", name="lt", pattern=re.compile(r"[\w-]+\.loca\.lt"), note="Password : " + "\033[32m" + public_ipv4 + "\033[0m" + " rerun cell if 404 error.")
|
62 |
+
|
63 |
+
''' add zrok tunnel '''
|
64 |
+
if zrok_token:
|
65 |
+
get_ipython().system('zrok enable {zrok_token} &> /dev/null')
|
66 |
+
tunnel.add_tunnel(command="zrok share public http://localhost:{port}/ --headless", name="zrok", pattern=re.compile(r"[\w-]+\.share\.zrok\.io"))
|
67 |
# ======================== TUNNEL ========================
|
68 |
|
69 |
|
files_cells/python/en/widgets_en.py
CHANGED
@@ -98,6 +98,11 @@ hr {
|
|
98 |
opacity: 0.25;
|
99 |
}
|
100 |
|
|
|
|
|
|
|
|
|
|
|
101 |
|
102 |
/* Container style */
|
103 |
|
@@ -281,7 +286,7 @@ hr {
|
|
281 |
|
282 |
.button_ngrok:hover {
|
283 |
cursor: pointer;
|
284 |
-
background-image: radial-gradient(circle at top left, purple 10%, #
|
285 |
background-size: 200% 200%;
|
286 |
background-position: right bottom;
|
287 |
transform: translateY(1px);
|
@@ -485,12 +490,15 @@ optional_huggingface_token_widget = widgets.Text(description='HuggingFace Token:
|
|
485 |
ngrok_token_widget = widgets.Text(description='Ngrok Token:', style=style, layout=widgets.Layout(width='1047px'))
|
486 |
ngrock_button = widgets.HTML('<a href="https://dashboard.ngrok.com/get-started/your-authtoken" target="_blank">Get Ngrok Token</a>').add_class("button_ngrok")
|
487 |
ngrok_widget = widgets.HBox([ngrok_token_widget, ngrock_button], style=style, layout=layout)
|
|
|
|
|
|
|
488 |
# ---
|
489 |
commandline_arguments_options = "--listen --enable-insecure-extension-access --theme dark --no-half-vae --disable-console-progressbars --xformers"
|
490 |
commandline_arguments_widget = widgets.Text(description='Arguments:', value=commandline_arguments_options, style=style, layout=layout)
|
491 |
|
492 |
''' Display Additional'''
|
493 |
-
additional_widget_list = [additional_header, latest_changes_widget, HR, controlnet_widget, controlnet_Num_widget, commit_hash_widget, optional_huggingface_token_widget, ngrok_widget, HR, commandline_arguments_widget]
|
494 |
if free_plan and env == "Google Colab":
|
495 |
additional_widget_list.remove(ngrok_widget)
|
496 |
# ```
|
@@ -550,7 +558,7 @@ settings_keys = [
|
|
550 |
'Vae', 'Vae_Num',
|
551 |
'latest_webui', 'latest_exstensions', 'detailed_download',
|
552 |
'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',
|
553 |
-
'ngrok_token', 'commandline_arguments',
|
554 |
'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'
|
555 |
]
|
556 |
|
|
|
98 |
opacity: 0.25;
|
99 |
}
|
100 |
|
101 |
+
a {
|
102 |
+
text-decoration: none;
|
103 |
+
color: inherit;
|
104 |
+
}
|
105 |
+
|
106 |
|
107 |
/* Container style */
|
108 |
|
|
|
286 |
|
287 |
.button_ngrok:hover {
|
288 |
cursor: pointer;
|
289 |
+
background-image: radial-gradient(circle at top left, purple 10%, #1D94BB 90%);
|
290 |
background-size: 200% 200%;
|
291 |
background-position: right bottom;
|
292 |
transform: translateY(1px);
|
|
|
490 |
ngrok_token_widget = widgets.Text(description='Ngrok Token:', style=style, layout=widgets.Layout(width='1047px'))
|
491 |
ngrock_button = widgets.HTML('<a href="https://dashboard.ngrok.com/get-started/your-authtoken" target="_blank">Get Ngrok Token</a>').add_class("button_ngrok")
|
492 |
ngrok_widget = widgets.HBox([ngrok_token_widget, ngrock_button], style=style, layout=layout)
|
493 |
+
zrok_token_widget = widgets.Text(description='Zrok Token:', style=style, layout=widgets.Layout(width='1047px'))
|
494 |
+
zrok_button = widgets.HTML('<a href="https://colab.research.google.com/drive/1d2sjWDJi_GYBUavrHSuQyHTDuLy36WpU" target="_blank">Reg Zrok Token</a>').add_class("button_ngrok")
|
495 |
+
zrok_widget = widgets.HBox([zrok_token_widget, zrok_button], style=style, layout=layout)
|
496 |
# ---
|
497 |
commandline_arguments_options = "--listen --enable-insecure-extension-access --theme dark --no-half-vae --disable-console-progressbars --xformers"
|
498 |
commandline_arguments_widget = widgets.Text(description='Arguments:', value=commandline_arguments_options, style=style, layout=layout)
|
499 |
|
500 |
''' Display Additional'''
|
501 |
+
additional_widget_list = [additional_header, latest_changes_widget, HR, controlnet_widget, controlnet_Num_widget, commit_hash_widget, optional_huggingface_token_widget, ngrok_widget, zrok_widget, HR, commandline_arguments_widget]
|
502 |
if free_plan and env == "Google Colab":
|
503 |
additional_widget_list.remove(ngrok_widget)
|
504 |
# ```
|
|
|
558 |
'Vae', 'Vae_Num',
|
559 |
'latest_webui', 'latest_exstensions', 'detailed_download',
|
560 |
'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',
|
561 |
+
'ngrok_token', 'zrok_token', 'commandline_arguments',
|
562 |
'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'
|
563 |
]
|
564 |
|
files_cells/python/ru/downloading_ru.py
CHANGED
@@ -57,6 +57,7 @@ if not os.path.exists(flag_file):
|
|
57 |
get_ipython().system('curl -s -OL https://github.com/DEX-1101/sd-webui-notebook/raw/main/res/new_tunnel --output-dir {root_path}')
|
58 |
get_ipython().system('curl -s -Lo /usr/bin/cl https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 && chmod +x /usr/bin/cl')
|
59 |
get_ipython().system('pip install insightface')
|
|
|
60 |
|
61 |
if env == "SageMaker Studio Lab":
|
62 |
get_ipython().run_line_magic('pip', 'install -q opencv-python-headless huggingface-hub')
|
@@ -95,7 +96,7 @@ variables = [
|
|
95 |
'Vae', 'Vae_Num',
|
96 |
'latest_webui', 'latest_exstensions', 'detailed_download',
|
97 |
'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',
|
98 |
-
'ngrok_token', 'commandline_arguments',
|
99 |
'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'
|
100 |
]
|
101 |
|
|
|
57 |
get_ipython().system('curl -s -OL https://github.com/DEX-1101/sd-webui-notebook/raw/main/res/new_tunnel --output-dir {root_path}')
|
58 |
get_ipython().system('curl -s -Lo /usr/bin/cl https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 && chmod +x /usr/bin/cl')
|
59 |
get_ipython().system('pip install insightface')
|
60 |
+
get_ipython().system('curl -sLO https://github.com/openziti/zrok/releases/download/v0.4.23/zrok_0.4.23_linux_amd64.tar.gz && tar -xzf zrok_0.4.23_linux_amd64.tar.gz -C /usr/bin && rm -f zrok_0.4.23_linux_amd64.tar.gz')
|
61 |
|
62 |
if env == "SageMaker Studio Lab":
|
63 |
get_ipython().run_line_magic('pip', 'install -q opencv-python-headless huggingface-hub')
|
|
|
96 |
'Vae', 'Vae_Num',
|
97 |
'latest_webui', 'latest_exstensions', 'detailed_download',
|
98 |
'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',
|
99 |
+
'ngrok_token', 'zrok_token', 'commandline_arguments',
|
100 |
'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'
|
101 |
]
|
102 |
|
files_cells/python/ru/launch_ru.py
CHANGED
@@ -34,6 +34,7 @@ def load_settings():
|
|
34 |
|
35 |
settings = load_settings()
|
36 |
ngrok_token = settings['ngrok_token']
|
|
|
37 |
commandline_arguments = settings['commandline_arguments']
|
38 |
|
39 |
|
@@ -58,6 +59,11 @@ if env != "SageMaker Studio Lab":
|
|
58 |
tunnel = tunnel_class(tunnel_port)
|
59 |
tunnel.add_tunnel(command="cl tunnel --url localhost:{port}", name="cl", pattern=re.compile(r"[\w-]+\.trycloudflare\.com"))
|
60 |
tunnel.add_tunnel(command="lt --port {port}", name="lt", pattern=re.compile(r"[\w-]+\.loca\.lt"), note="Password : " + "\033[32m" + public_ipv4 + "\033[0m" + " rerun cell if 404 error.")
|
|
|
|
|
|
|
|
|
|
|
61 |
# ======================== TUNNEL ========================
|
62 |
|
63 |
|
|
|
34 |
|
35 |
settings = load_settings()
|
36 |
ngrok_token = settings['ngrok_token']
|
37 |
+
zrok_token = settings['zrok_token']
|
38 |
commandline_arguments = settings['commandline_arguments']
|
39 |
|
40 |
|
|
|
59 |
tunnel = tunnel_class(tunnel_port)
|
60 |
tunnel.add_tunnel(command="cl tunnel --url localhost:{port}", name="cl", pattern=re.compile(r"[\w-]+\.trycloudflare\.com"))
|
61 |
tunnel.add_tunnel(command="lt --port {port}", name="lt", pattern=re.compile(r"[\w-]+\.loca\.lt"), note="Password : " + "\033[32m" + public_ipv4 + "\033[0m" + " rerun cell if 404 error.")
|
62 |
+
|
63 |
+
''' add zrok tunnel '''
|
64 |
+
if zrok_token:
|
65 |
+
get_ipython().system('zrok enable {zrok_token} &> /dev/null')
|
66 |
+
tunnel.add_tunnel(command="zrok share public http://localhost:{port}/ --headless", name="zrok", pattern=re.compile(r"[\w-]+\.share\.zrok\.io"))
|
67 |
# ======================== TUNNEL ========================
|
68 |
|
69 |
|
files_cells/python/ru/widgets_ru.py
CHANGED
@@ -98,6 +98,11 @@ hr {
|
|
98 |
opacity: 0.25;
|
99 |
}
|
100 |
|
|
|
|
|
|
|
|
|
|
|
101 |
|
102 |
/* Container style */
|
103 |
|
@@ -281,7 +286,7 @@ hr {
|
|
281 |
|
282 |
.button_ngrok:hover {
|
283 |
cursor: pointer;
|
284 |
-
background-image: radial-gradient(circle at top left, purple 10%, #
|
285 |
background-size: 200% 200%;
|
286 |
background-position: right bottom;
|
287 |
transform: translateY(1px);
|
@@ -485,12 +490,15 @@ optional_huggingface_token_widget = widgets.Text(description='Токен Hugging
|
|
485 |
ngrok_token_widget = widgets.Text(description='Токен Ngrok:', style=style, layout=widgets.Layout(width='1047px'))
|
486 |
ngrock_button = widgets.HTML('<a href="https://dashboard.ngrok.com/get-started/your-authtoken" target="_blank">Получить Ngrok Токен</a>').add_class("button_ngrok")
|
487 |
ngrok_widget = widgets.HBox([ngrok_token_widget, ngrock_button], style=style, layout=layout)
|
|
|
|
|
|
|
488 |
# ---
|
489 |
commandline_arguments_options = "--listen --enable-insecure-extension-access --theme dark --no-half-vae --disable-console-progressbars --xformers"
|
490 |
commandline_arguments_widget = widgets.Text(description='Аргументы:', value=commandline_arguments_options, style=style, layout=layout)
|
491 |
|
492 |
''' Display Additional'''
|
493 |
-
additional_widget_list = [additional_header, latest_changes_widget, HR, controlnet_widget, controlnet_Num_widget, commit_hash_widget, optional_huggingface_token_widget, ngrok_widget, HR, commandline_arguments_widget]
|
494 |
if free_plan and env == "Google Colab":
|
495 |
additional_widget_list.remove(ngrok_widget)
|
496 |
# ```
|
@@ -550,7 +558,7 @@ settings_keys = [
|
|
550 |
'Vae', 'Vae_Num',
|
551 |
'latest_webui', 'latest_exstensions', 'detailed_download',
|
552 |
'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',
|
553 |
-
'ngrok_token', 'commandline_arguments',
|
554 |
'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'
|
555 |
]
|
556 |
|
|
|
98 |
opacity: 0.25;
|
99 |
}
|
100 |
|
101 |
+
a {
|
102 |
+
text-decoration: none;
|
103 |
+
color: inherit;
|
104 |
+
}
|
105 |
+
|
106 |
|
107 |
/* Container style */
|
108 |
|
|
|
286 |
|
287 |
.button_ngrok:hover {
|
288 |
cursor: pointer;
|
289 |
+
background-image: radial-gradient(circle at top left, purple 10%, #1D94BB 90%);
|
290 |
background-size: 200% 200%;
|
291 |
background-position: right bottom;
|
292 |
transform: translateY(1px);
|
|
|
490 |
ngrok_token_widget = widgets.Text(description='Токен Ngrok:', style=style, layout=widgets.Layout(width='1047px'))
|
491 |
ngrock_button = widgets.HTML('<a href="https://dashboard.ngrok.com/get-started/your-authtoken" target="_blank">Получить Ngrok Токен</a>').add_class("button_ngrok")
|
492 |
ngrok_widget = widgets.HBox([ngrok_token_widget, ngrock_button], style=style, layout=layout)
|
493 |
+
zrok_token_widget = widgets.Text(description='Zrok Token:', style=style, layout=widgets.Layout(width='1047px'))
|
494 |
+
zrok_button = widgets.HTML('<a href="https://colab.research.google.com/drive/1d2sjWDJi_GYBUavrHSuQyHTDuLy36WpU" target="_blank">Зарегать Zrok Токен</a>').add_class("button_ngrok")
|
495 |
+
zrok_widget = widgets.HBox([zrok_token_widget, zrok_button], style=style, layout=layout)
|
496 |
# ---
|
497 |
commandline_arguments_options = "--listen --enable-insecure-extension-access --theme dark --no-half-vae --disable-console-progressbars --xformers"
|
498 |
commandline_arguments_widget = widgets.Text(description='Аргументы:', value=commandline_arguments_options, style=style, layout=layout)
|
499 |
|
500 |
''' Display Additional'''
|
501 |
+
additional_widget_list = [additional_header, latest_changes_widget, HR, controlnet_widget, controlnet_Num_widget, commit_hash_widget, optional_huggingface_token_widget, ngrok_widget, zrok_widget, HR, commandline_arguments_widget]
|
502 |
if free_plan and env == "Google Colab":
|
503 |
additional_widget_list.remove(ngrok_widget)
|
504 |
# ```
|
|
|
558 |
'Vae', 'Vae_Num',
|
559 |
'latest_webui', 'latest_exstensions', 'detailed_download',
|
560 |
'controlnet', 'controlnet_Num', 'commit_hash', 'optional_huggingface_token',
|
561 |
+
'ngrok_token', 'zrok_token', 'commandline_arguments',
|
562 |
'Model_url', 'Vae_url', 'LoRA_url', 'Embedding_url', 'Extensions_url', 'custom_file_urls'
|
563 |
]
|
564 |
|