...
Browse files
files_cells/notebooks/en/launch_en.ipynb
CHANGED
@@ -110,8 +110,6 @@
|
|
110 |
" sed_command = f\"sed -i 's|\\\"{key}\\\": \\\".*\\\"|\\\"{key}\\\": \\\"{value}\\\"|' {config_path}\"\n",
|
111 |
" os.system(sed_command)\n",
|
112 |
"\n",
|
113 |
-
" if env == 'Kaggle':\n",
|
114 |
-
" !sed -i 's/\"civitai_interface\\/NSFW content\\/visible\": true,/\"civitai_interface\\/NSFW content\\/visible\": false,/' {webui_path}/ui-config.json\n",
|
115 |
"\n",
|
116 |
"with tunnel:\n",
|
117 |
" %cd {webui_path}\n",
|
|
|
110 |
" sed_command = f\"sed -i 's|\\\"{key}\\\": \\\".*\\\"|\\\"{key}\\\": \\\"{value}\\\"|' {config_path}\"\n",
|
111 |
" os.system(sed_command)\n",
|
112 |
"\n",
|
|
|
|
|
113 |
"\n",
|
114 |
"with tunnel:\n",
|
115 |
" %cd {webui_path}\n",
|
files_cells/notebooks/ru/launch_ru.ipynb
CHANGED
@@ -110,8 +110,6 @@
|
|
110 |
" sed_command = f\"sed -i 's|\\\"{key}\\\": \\\".*\\\"|\\\"{key}\\\": \\\"{value}\\\"|' {config_path}\"\n",
|
111 |
" os.system(sed_command)\n",
|
112 |
"\n",
|
113 |
-
" if env == 'Kaggle':\n",
|
114 |
-
" !sed -i 's/\"civitai_interface\\/NSFW content\\/visible\": true,/\"civitai_interface\\/NSFW content\\/visible\": false,/' {webui_path}/ui-config.json\n",
|
115 |
"\n",
|
116 |
"with tunnel:\n",
|
117 |
" %cd {webui_path}\n",
|
|
|
110 |
" sed_command = f\"sed -i 's|\\\"{key}\\\": \\\".*\\\"|\\\"{key}\\\": \\\"{value}\\\"|' {config_path}\"\n",
|
111 |
" os.system(sed_command)\n",
|
112 |
"\n",
|
|
|
|
|
113 |
"\n",
|
114 |
"with tunnel:\n",
|
115 |
" %cd {webui_path}\n",
|
files_cells/python/en/launch_en.py
CHANGED
@@ -86,8 +86,6 @@ if os.path.exists(config_path):
|
|
86 |
sed_command = f"sed -i 's|\"{key}\": \".*\"|\"{key}\": \"{value}\"|' {config_path}"
|
87 |
os.system(sed_command)
|
88 |
|
89 |
-
if env == 'Kaggle':
|
90 |
-
get_ipython().system('sed -i \'s/"civitai_interface\\/NSFW content\\/visible": true,/"civitai_interface\\/NSFW content\\/visible": false,/\' {webui_path}/ui-config.json')
|
91 |
|
92 |
with tunnel:
|
93 |
get_ipython().run_line_magic('cd', '{webui_path}')
|
|
|
86 |
sed_command = f"sed -i 's|\"{key}\": \".*\"|\"{key}\": \"{value}\"|' {config_path}"
|
87 |
os.system(sed_command)
|
88 |
|
|
|
|
|
89 |
|
90 |
with tunnel:
|
91 |
get_ipython().run_line_magic('cd', '{webui_path}')
|
files_cells/python/ru/launch_ru.py
CHANGED
@@ -86,8 +86,6 @@ if os.path.exists(config_path):
|
|
86 |
sed_command = f"sed -i 's|\"{key}\": \".*\"|\"{key}\": \"{value}\"|' {config_path}"
|
87 |
os.system(sed_command)
|
88 |
|
89 |
-
if env == 'Kaggle':
|
90 |
-
get_ipython().system('sed -i \'s/"civitai_interface\\/NSFW content\\/visible": true,/"civitai_interface\\/NSFW content\\/visible": false,/\' {webui_path}/ui-config.json')
|
91 |
|
92 |
with tunnel:
|
93 |
get_ipython().run_line_magic('cd', '{webui_path}')
|
|
|
86 |
sed_command = f"sed -i 's|\"{key}\": \".*\"|\"{key}\": \"{value}\"|' {config_path}"
|
87 |
os.system(sed_command)
|
88 |
|
|
|
|
|
89 |
|
90 |
with tunnel:
|
91 |
get_ipython().run_line_magic('cd', '{webui_path}')
|