Fooocus / app.py
rriverar75's picture
Create app.py
0bde25e verified
raw
history blame contribute delete
378 Bytes
import os
import subprocess
# Clonamos el repositorio
if not os.path.exists('Fooocus'):
subprocess.run(['git', 'clone', 'https://github.com/lllyasviel/Fooocus.git'], check=True)
# Cambiamos al directorio Fooocus
os.chdir('Fooocus')
# Ejecutamos el script que necesita tu app
subprocess.run(['python3', 'entry_with_update.py', '--share', '--always-high-vram'], check=True)