rriverar75 commited on
Commit
0bde25e
β€’
1 Parent(s): 1db81af

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
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)