Nathyboy commited on
Commit
c16cd7d
·
verified ·
1 Parent(s): a8ca01d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -9
app.py CHANGED
@@ -1,18 +1,12 @@
 
1
  import os
2
  import subprocess
3
  import gradio as gr
4
 
5
- # Start Automatic1111 WebUI in background
6
- if not os.path.exists("stable-diffusion-webui"):
7
- subprocess.run([
8
- "git", "clone", "--depth", "1",
9
- "https://github.com/AUTOMATIC1111/stable-diffusion-webui.git"
10
- ])
11
- os.chdir("stable-diffusion-webui")
12
-
13
- # Install dependencies (will be picked up by requirements.txt too)
14
  subprocess.run(["pip", "install", "-r", "requirements.txt"])
15
 
16
  # Launch WebUI
17
  os.environ["COMMANDLINE_ARGS"] = "--listen --xformers --enable-insecure-extension-access --medvram"
18
  subprocess.run(["python", "launch.py"])
 
 
1
+
2
  import os
3
  import subprocess
4
  import gradio as gr
5
 
6
+ # Install dependencies (from root)
 
 
 
 
 
 
 
 
7
  subprocess.run(["pip", "install", "-r", "requirements.txt"])
8
 
9
  # Launch WebUI
10
  os.environ["COMMANDLINE_ARGS"] = "--listen --xformers --enable-insecure-extension-access --medvram"
11
  subprocess.run(["python", "launch.py"])
12
+