Spaces:
Runtime error
Runtime error
rriverar75
commited on
Commit
β’
0bde25e
1
Parent(s):
1db81af
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
import subprocess
|
3 |
+
|
4 |
+
# Clonamos el repositorio
|
5 |
+
if not os.path.exists('Fooocus'):
|
6 |
+
subprocess.run(['git', 'clone', 'https://github.com/lllyasviel/Fooocus.git'], check=True)
|
7 |
+
|
8 |
+
# Cambiamos al directorio Fooocus
|
9 |
+
os.chdir('Fooocus')
|
10 |
+
|
11 |
+
# Ejecutamos el script que necesita tu app
|
12 |
+
subprocess.run(['python3', 'entry_with_update.py', '--share', '--always-high-vram'], check=True)
|