Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,18 +1,12 @@
|
|
|
|
|
| 1 |
import os
|
| 2 |
import subprocess
|
| 3 |
import gradio as gr
|
| 4 |
|
| 5 |
-
#
|
| 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 |
+
|