ACCA225 commited on
Commit
0804f9b
1 Parent(s): 7f654da

Update new.py

Browse files
Files changed (1) hide show
  1. new.py +12 -1
new.py CHANGED
@@ -5,6 +5,17 @@ webui_repo = 'AUTOMATIC1111/stable-diffusion-webui --branch v1.9.4'
5
  rename_repo = 'stable-diffusion-webui'
6
  git_url = 'gitcode.com'
7
  webui_port = 7860
 
 
 
 
 
 
 
 
 
 
 
8
 
9
  api_auth = 'Echoflare:Tt25faj8'
10
 
@@ -262,7 +273,7 @@ import threading
262
 
263
  def setup_and_run_services():
264
  packages = ["pyngrok", "jupyterlab"]
265
- ngrok_token = "2jIH20HEgKSt1T4IzmMtg8STeZo_3eLMT3QN32hLrNUKjARwo"
266
  http_port = "8083"
267
 
268
  # 安装Python包
 
5
  rename_repo = 'stable-diffusion-webui'
6
  git_url = 'gitcode.com'
7
  webui_port = 7860
8
+ package_envs = [
9
+ {"env": "STABLE_DIFFUSION_XL_REPO", "url": os.environ.get('STABLE_DIFFUSION_XL_REPO', "https://gitcode.net/overbill1683/generative-models")},
10
+ {"env": "K_DIFFUSION_REPO", "url": os.environ.get('K_DIFFUSION_REPO', "https://gitcode.net/overbill1683/k-diffusion")},
11
+ {"env": "CODEFORMER_REPO", "url": os.environ.get('CODEFORMER_REPO', "https://gitcode.net/overbill1683/CodeFormer")},
12
+ {"env": "BLIP_REPO", "url": os.environ.get('BLIP_REPO', "https://gitcode.net/overbill1683/BLIP")},
13
+ {"env": "CLIP_PACKAGE", "url": os.environ.get('CLIP_REPO', "https://kkgithub.com/openai/CLIP")},
14
+ {"env": "ASSETS_REPO", "url": os.environ.get('CLIP_REPO', "https://kkgithub.com/AUTOMATIC1111/stable-diffusion-webui-assets.git")},
15
+ ]
16
+ os.environ["PIP_INDEX_URL"] = "https://mirrors.aliyun.com/pypi/simple/"
17
+ for i in package_envs:
18
+ os.environ[i["env"]] = i["url"]
19
 
20
  api_auth = 'Echoflare:Tt25faj8'
21
 
 
273
 
274
  def setup_and_run_services():
275
  packages = ["pyngrok", "jupyterlab"]
276
+ ngrok_token = "*"
277
  http_port = "8083"
278
 
279
  # 安装Python包