Upload sdwui-start-util.mini.ipynb
Browse files
sdwui-start-util.mini.ipynb
CHANGED
@@ -319,6 +319,8 @@
|
|
319 |
"if 'sd_start_args' in locals() or 'sd_start_args' in globals():\n",
|
320 |
" otherArgs = ' '.join([item for item in config_reader(locals().get('sd_start_args') or globals().get('sd_start_args')) if item != '--no-gradio-queue'])\n",
|
321 |
"venvPath = os.path.join(_input_path,'sd-webui-venv-mini/venv.tar.bak') # 安装好的python环境 sd-webui-venv是一个公开是数据集 可以搜索添加\n",
|
|
|
|
|
322 |
"\n",
|
323 |
"# 用于使用kaggle api的token文件 参考 https://www.kaggle.com/docs/api\n",
|
324 |
"# 此文件用于自动上传koishi的相关配置 也可以用于保存重要的输出文件\n",
|
@@ -362,8 +364,6 @@
|
|
362 |
" elif not _ngrok_config_or_file.strip().startswith('/'):\n",
|
363 |
" ngrokToken=_ngrok_config_or_file.strip()\n",
|
364 |
" \n",
|
365 |
-
"if not Path(venvPath).exists():\n",
|
366 |
-
" venvPath = os.path.join(_input_path,'sd-webui-venv/venv.zip')\n",
|
367 |
" \n",
|
368 |
"huggingface_headers:dict = None "
|
369 |
]
|
@@ -497,8 +497,7 @@
|
|
497 |
" elif not _ngrok_config_or_file.strip().startswith('/'):\n",
|
498 |
" ngrokToken=_ngrok_config_or_file.strip()\n",
|
499 |
" \n",
|
500 |
-
"
|
501 |
-
" venvPath = os.path.join(_input_path,'sd-webui-venv/venv.zip')\n",
|
502 |
" "
|
503 |
]
|
504 |
},
|
|
|
319 |
"if 'sd_start_args' in locals() or 'sd_start_args' in globals():\n",
|
320 |
" otherArgs = ' '.join([item for item in config_reader(locals().get('sd_start_args') or globals().get('sd_start_args')) if item != '--no-gradio-queue'])\n",
|
321 |
"venvPath = os.path.join(_input_path,'sd-webui-venv-mini/venv.tar.bak') # 安装好的python环境 sd-webui-venv是一个公开是数据集 可以搜索添加\n",
|
322 |
+
"if not Path(venvPath).exists():\n",
|
323 |
+
" venvPath = os.path.join(_input_path,'sd-webui-venv-mini/venv.zip')\n",
|
324 |
"\n",
|
325 |
"# 用于使用kaggle api的token文件 参考 https://www.kaggle.com/docs/api\n",
|
326 |
"# 此文件用于自动上传koishi的相关配置 也可以用于保存重要的输出文件\n",
|
|
|
364 |
" elif not _ngrok_config_or_file.strip().startswith('/'):\n",
|
365 |
" ngrokToken=_ngrok_config_or_file.strip()\n",
|
366 |
" \n",
|
|
|
|
|
367 |
" \n",
|
368 |
"huggingface_headers:dict = None "
|
369 |
]
|
|
|
497 |
" elif not _ngrok_config_or_file.strip().startswith('/'):\n",
|
498 |
" ngrokToken=_ngrok_config_or_file.strip()\n",
|
499 |
" \n",
|
500 |
+
" venvPath = os.path.join(_input_path,'sd-webui-venv-mini/venv.tar.bak') # 安装好的python环境 sd-webui-venv是一个公开是数据集 可以搜索添加\n",
|
|
|
501 |
" "
|
502 |
]
|
503 |
},
|