Upload 16 files
Browse filesremoved zrok for sagemaker and a possible fix
- files_cells/notebooks/en/launch_en.ipynb +4 -4
- files_cells/notebooks/en/widgets_en.ipynb +3 -1
- files_cells/notebooks/ru/launch_ru.ipynb +4 -4
- files_cells/notebooks/ru/widgets_ru.ipynb +3 -1
- files_cells/python/en/launch_en.py +4 -4
- files_cells/python/en/widgets_en.py +3 -1
- files_cells/python/ru/launch_ru.py +4 -4
- files_cells/python/ru/widgets_ru.py +3 -1
files_cells/notebooks/en/launch_en.ipynb
CHANGED
@@ -84,10 +84,10 @@
|
|
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 |
-
"
|
90 |
-
"
|
91 |
"# ======================== TUNNEL ========================\n",
|
92 |
"\n",
|
93 |
"\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
@@ -518,8 +518,10 @@
|
|
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\"
|
522 |
" additional_widget_list.remove(ngrok_widget)\n",
|
|
|
|
|
523 |
"# ```\n",
|
524 |
"all_additional_box = widgets.VBox(additional_widget_list).add_class(\"container\").add_class(\"image_3\")\n",
|
525 |
"display(all_additional_box)\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\": # remove ngrok from colab\n",
|
522 |
" additional_widget_list.remove(ngrok_widget)\n",
|
523 |
+
"if env == \"SageMaker Studio Lab\": # remove zrok from sagemaker\n",
|
524 |
+
" additional_widget_list.remove(zrok_widget)\n",
|
525 |
"# ```\n",
|
526 |
"all_additional_box = widgets.VBox(additional_widget_list).add_class(\"container\").add_class(\"image_3\")\n",
|
527 |
"display(all_additional_box)\n",
|
files_cells/notebooks/ru/launch_ru.ipynb
CHANGED
@@ -84,10 +84,10 @@
|
|
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 |
-
"
|
90 |
-
"
|
91 |
"# ======================== TUNNEL ========================\n",
|
92 |
"\n",
|
93 |
"\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
@@ -518,8 +518,10 @@
|
|
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\"
|
522 |
" additional_widget_list.remove(ngrok_widget)\n",
|
|
|
|
|
523 |
"# ```\n",
|
524 |
"all_additional_box = widgets.VBox(additional_widget_list).add_class(\"container\").add_class(\"image_3\")\n",
|
525 |
"display(all_additional_box)\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\": # remove ngrok from colab\n",
|
522 |
" additional_widget_list.remove(ngrok_widget)\n",
|
523 |
+
"if env == \"SageMaker Studio Lab\": # remove zrok from sagemaker\n",
|
524 |
+
" additional_widget_list.remove(zrok_widget)\n",
|
525 |
"# ```\n",
|
526 |
"all_additional_box = widgets.VBox(additional_widget_list).add_class(\"container\").add_class(\"image_3\")\n",
|
527 |
"display(all_additional_box)\n",
|
files_cells/python/en/launch_en.py
CHANGED
@@ -60,10 +60,10 @@ if env != "SageMaker Studio Lab":
|
|
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 |
-
|
66 |
-
|
67 |
# ======================== TUNNEL ========================
|
68 |
|
69 |
|
|
|
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
@@ -499,8 +499,10 @@ commandline_arguments_widget = widgets.Text(description='Arguments:', value=comm
|
|
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 |
# ```
|
505 |
all_additional_box = widgets.VBox(additional_widget_list).add_class("container").add_class("image_3")
|
506 |
display(all_additional_box)
|
|
|
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": # remove ngrok from colab
|
503 |
additional_widget_list.remove(ngrok_widget)
|
504 |
+
if env == "SageMaker Studio Lab": # remove zrok from sagemaker
|
505 |
+
additional_widget_list.remove(zrok_widget)
|
506 |
# ```
|
507 |
all_additional_box = widgets.VBox(additional_widget_list).add_class("container").add_class("image_3")
|
508 |
display(all_additional_box)
|
files_cells/python/ru/launch_ru.py
CHANGED
@@ -60,10 +60,10 @@ if env != "SageMaker Studio Lab":
|
|
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 |
-
|
66 |
-
|
67 |
# ======================== TUNNEL ========================
|
68 |
|
69 |
|
|
|
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
@@ -499,8 +499,10 @@ commandline_arguments_widget = widgets.Text(description='Аргументы:', v
|
|
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 |
# ```
|
505 |
all_additional_box = widgets.VBox(additional_widget_list).add_class("container").add_class("image_3")
|
506 |
display(all_additional_box)
|
|
|
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": # remove ngrok from colab
|
503 |
additional_widget_list.remove(ngrok_widget)
|
504 |
+
if env == "SageMaker Studio Lab": # remove zrok from sagemaker
|
505 |
+
additional_widget_list.remove(zrok_widget)
|
506 |
# ```
|
507 |
all_additional_box = widgets.VBox(additional_widget_list).add_class("container").add_class("image_3")
|
508 |
display(all_additional_box)
|