48leewsypc commited on
Commit
a8977fb
·
verified ·
1 Parent(s): 015e749

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -45,7 +45,12 @@ os.chdir(str(user_home))
45
  print("cloning stable-diffusion-webui repo")
46
  Gitclone(r"https://github.com/AUTOMATIC1111/stable-diffusion-webui.git",user_home / r"stable-diffusion-webui")
47
  os.chdir(str(user_home / r"stable-diffusion-webui"))
48
- os.system("git reset --hard "+commit_id)
 
 
 
 
 
49
  #install extensions
50
  print("installing extensions")
51
  Gitclone(r"https://huggingface.co/embed/negative",user_home / r"stable-diffusion-webui" / r"embeddings" / r"negative")
 
45
  print("cloning stable-diffusion-webui repo")
46
  Gitclone(r"https://github.com/AUTOMATIC1111/stable-diffusion-webui.git",user_home / r"stable-diffusion-webui")
47
  os.chdir(str(user_home / r"stable-diffusion-webui"))
48
+ os.system("git remote add forge https://github.com/lllyasviel/stable-diffusion-webui-forge")
49
+ os.system("git branch lllyasviel/main")
50
+ os.system("git checkout lllyasviel/main")
51
+ os.system("git fetch forge")
52
+ os.system("git branch -u forge/main")
53
+ os.system("git pull")
54
  #install extensions
55
  print("installing extensions")
56
  Gitclone(r"https://huggingface.co/embed/negative",user_home / r"stable-diffusion-webui" / r"embeddings" / r"negative")