facefusion / app.py
wsj1995's picture
feat: init
86f2a58
raw
history blame
392 Bytes
#!/usr/bin/env python3
# import os
# os.environ['OMP_NUM_THREADS'] = '1'
# from facefusion import core
# if __name__ == '__main__':
# core.cli()
# import facefusion.uis.core as ui
# ui.launch()
import spaces
import subprocess
@spaces.GPU(duration=120)
def test():
pass
subprocess.run(
['python', 'facefusion.py','run', '--execution-providers', 'cuda'],
stdout=subprocess.PIPE
)