Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def swap_face(source_file, target_file):
|
|
37 |
roop.globals.keep_frames = False
|
38 |
roop.globals.many_faces = False
|
39 |
roop.globals.video_encoder = "libx264"
|
40 |
-
roop.globals.video_quality =
|
41 |
roop.globals.max_memory = 14#suggest_max_memory()
|
42 |
roop.globals.execution_providers = decode_execution_providers(["cpu"])
|
43 |
roop.globals.execution_threads = 32#suggest_execution_threads()
|
@@ -52,7 +52,7 @@ def swap_face(source_file, target_file):
|
|
52 |
return os.path.join(os.getcwd(), output_path)
|
53 |
|
54 |
app = gr.Interface(
|
55 |
-
fn=swap_face, inputs=[gr.Image(), gr.Video()], outputs=[gr.Video()], description=" ",theme="
|
56 |
)
|
57 |
|
58 |
app.launch()
|
|
|
37 |
roop.globals.keep_frames = False
|
38 |
roop.globals.many_faces = False
|
39 |
roop.globals.video_encoder = "libx264"
|
40 |
+
roop.globals.video_quality = 50
|
41 |
roop.globals.max_memory = 14#suggest_max_memory()
|
42 |
roop.globals.execution_providers = decode_execution_providers(["cpu"])
|
43 |
roop.globals.execution_threads = 32#suggest_execution_threads()
|
|
|
52 |
return os.path.join(os.getcwd(), output_path)
|
53 |
|
54 |
app = gr.Interface(
|
55 |
+
fn=swap_face, inputs=[gr.Image(), gr.Video()], outputs=[gr.Video()], description="Sorry for the inconvenience. The model is currently running on the CPU, which might affect performance. We appreciate your understanding.",theme="NoCrypt/miku"
|
56 |
)
|
57 |
|
58 |
app.launch()
|