Spaces:
Running
on
Zero
Running
on
Zero
feat: test
Browse files- app.py +9 -2
- facefusion.py +10 -0
app.py
CHANGED
@@ -9,5 +9,12 @@
|
|
9 |
# if __name__ == '__main__':
|
10 |
# core.cli()
|
11 |
|
12 |
-
import facefusion.uis.core as ui
|
13 |
-
ui.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
# if __name__ == '__main__':
|
10 |
# core.cli()
|
11 |
|
12 |
+
# import facefusion.uis.core as ui
|
13 |
+
# ui.launch()
|
14 |
+
|
15 |
+
import subprocess
|
16 |
+
|
17 |
+
subprocess.Popen(
|
18 |
+
['python', 'facefusion.py','run', '--execution-providers', 'cuda'],
|
19 |
+
stdout=subprocess.PIPE
|
20 |
+
)
|
facefusion.py
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/env python3
|
2 |
+
|
3 |
+
import os
|
4 |
+
|
5 |
+
os.environ['OMP_NUM_THREADS'] = '1'
|
6 |
+
|
7 |
+
from facefusion import core
|
8 |
+
|
9 |
+
if __name__ == '__main__':
|
10 |
+
core.cli()
|