NagisaNao commited on
Commit
7cfb0ea
1 Parent(s): c1d0017

🐛 fix for kaggle?

Browse files
files_cells/notebooks/en/launch_en.ipynb CHANGED
@@ -111,7 +111,7 @@
111
  " os.system(sed_command)\n",
112
  "\n",
113
  " if env == 'Kaggle':\n",
114
- " !sed -i 's|\"civitai_interface NSFW content\":.*|\"civitai_interface NSFW content\": false,|' {webui_path}/ui-config.json\n",
115
  "\n",
116
  "with tunnel:\n",
117
  " %cd {webui_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",
files_cells/notebooks/ru/launch_ru.ipynb CHANGED
@@ -111,7 +111,7 @@
111
  " os.system(sed_command)\n",
112
  "\n",
113
  " if env == 'Kaggle':\n",
114
- " !sed -i 's|\"civitai_interface NSFW content\":.*|\"civitai_interface NSFW content\": false,|' {webui_path}/ui-config.json\n",
115
  "\n",
116
  "with tunnel:\n",
117
  " %cd {webui_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",
files_cells/python/en/launch_en.py CHANGED
@@ -87,7 +87,7 @@ if os.path.exists(config_path):
87
  os.system(sed_command)
88
 
89
  if env == 'Kaggle':
90
- get_ipython().system('sed -i \'s|"civitai_interface NSFW content":.*|"civitai_interface NSFW content": false,|\' {webui_path}/ui-config.json')
91
 
92
  with tunnel:
93
  get_ipython().run_line_magic('cd', '{webui_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}')
files_cells/python/ru/launch_ru.py CHANGED
@@ -87,7 +87,7 @@ if os.path.exists(config_path):
87
  os.system(sed_command)
88
 
89
  if env == 'Kaggle':
90
- get_ipython().system('sed -i \'s|"civitai_interface NSFW content":.*|"civitai_interface NSFW content": false,|\' {webui_path}/ui-config.json')
91
 
92
  with tunnel:
93
  get_ipython().run_line_magic('cd', '{webui_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}')
modules/setup_en.py CHANGED
@@ -39,7 +39,7 @@ def clear_module_cache(modules_folder):
39
 
40
  def download_files(root_path, lang, repo):
41
  print("Please wait for the files to download... 👀", end='', flush=True)
42
- files_dict = {
43
  'CSS': {'CSS': ['main_widgets.css', 'auto_cleaner.css', 'dl_display_result.css']},
44
  'file_cell': {f'files_cells/python/{lang}': [f'widgets_{lang}.py', f'downloading_{lang}.py', f'launch_{lang}.py', f'auto_cleaner_{lang}.py']},
45
  'file_cell/special': {f'special': ['dl_display_results.py']},
 
39
 
40
  def download_files(root_path, lang, repo):
41
  print("Please wait for the files to download... 👀", end='', flush=True)
42
+ files_dict = { # save folder name | url folder path | files list
43
  'CSS': {'CSS': ['main_widgets.css', 'auto_cleaner.css', 'dl_display_result.css']},
44
  'file_cell': {f'files_cells/python/{lang}': [f'widgets_{lang}.py', f'downloading_{lang}.py', f'launch_{lang}.py', f'auto_cleaner_{lang}.py']},
45
  'file_cell/special': {f'special': ['dl_display_results.py']},
modules/setup_ru.py CHANGED
@@ -39,7 +39,7 @@ def clear_module_cache(modules_folder):
39
 
40
  def download_files(root_path, lang, repo):
41
  print("Пожалуйста, дождитесь загрузки файлов... 👀", end='', flush=True)
42
- files_dict = {
43
  'CSS': {'CSS': ['main_widgets.css', 'auto_cleaner.css', 'dl_display_result.css']},
44
  'file_cell': {f'files_cells/python/{lang}': [f'widgets_{lang}.py', f'downloading_{lang}.py', f'launch_{lang}.py', f'auto_cleaner_{lang}.py']},
45
  'file_cell/special': {f'special': ['dl_display_results.py']},
 
39
 
40
  def download_files(root_path, lang, repo):
41
  print("Пожалуйста, дождитесь загрузки файлов... 👀", end='', flush=True)
42
+ files_dict = { # save folder name | url folder path | files list
43
  'CSS': {'CSS': ['main_widgets.css', 'auto_cleaner.css', 'dl_display_result.css']},
44
  'file_cell': {f'files_cells/python/{lang}': [f'widgets_{lang}.py', f'downloading_{lang}.py', f'launch_{lang}.py', f'auto_cleaner_{lang}.py']},
45
  'file_cell/special': {f'special': ['dl_display_results.py']},