Nathyboy commited on
Commit
d37bf4f
·
1 Parent(s): 3971db1

Delete app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -26
app.py DELETED
@@ -1,26 +0,0 @@
1
- {\rtf1\ansi\ansicpg1252\cocoartf2822
2
- \cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
3
- {\colortbl;\red255\green255\blue255;}
4
- {\*\expandedcolortbl;;}
5
- \paperw11900\paperh16840\margl1440\margr1440\vieww11520\viewh8400\viewkind0
6
- \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0
7
-
8
- \f0\fs24 \cf0 import os\
9
- import subprocess\
10
- import gradio as gr\
11
- \
12
- # Start Automatic1111 WebUI in background\
13
- if not os.path.exists("stable-diffusion-webui"):\
14
- subprocess.run([\
15
- "git", "clone", "--depth", "1",\
16
- "https://github.com/AUTOMATIC1111/stable-diffusion-webui.git"\
17
- ])\
18
- os.chdir("stable-diffusion-webui")\
19
- \
20
- # Install dependencies (will be picked up by requirements.txt too)\
21
- subprocess.run(["pip", "install", "-r", "requirements.txt"])\
22
- \
23
- # Launch WebUI\
24
- os.environ["COMMANDLINE_ARGS"] = "--listen --disable-safe-unpickle --skip-torch-cuda-test"\
25
- subprocess.run(["python", "launch.py"])\
26
- }