vvbb / app.py
rakesh-121's picture
Update app.py
693ea98 verified
raw
history blame contribute delete
338 Bytes
import subprocess
import os
# Set the device to CPU explicitly
print("Using CPU")
# Install dependencies for CPU mode
subprocess.run(["python", "install.py", "--onnxruntime", "default", "--skip-conda"], check=True)
# Run the UI in CPU mode
subprocess.run(["python", "facefusion.py", "run", "--execution-providers", "cpu"], check=True)