Spaces:
Runtime error
Runtime error
| 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) |