Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,3 @@
|
|
1 |
-
# -* coding:UTF-8 -*
|
2 |
-
# !/usr/bin/env python
|
3 |
import numpy as np
|
4 |
import gradio as gr
|
5 |
import roop.globals
|
@@ -66,6 +64,6 @@ def swap_face(source_file, target_file,doFaceEnhancer):
|
|
66 |
|
67 |
|
68 |
app = gr.Interface(
|
69 |
-
fn=swap_face, inputs=[gr.Image(), gr.Image(),gr.Checkbox(
|
70 |
)
|
71 |
app.launch()
|
|
|
|
|
|
|
1 |
import numpy as np
|
2 |
import gradio as gr
|
3 |
import roop.globals
|
|
|
64 |
|
65 |
|
66 |
app = gr.Interface(
|
67 |
+
fn=swap_face, inputs=[gr.Image(), gr.Image(),gr.Checkbox(info="Apply Face Enhancer")], outputs="image", theme="NoCrypt/miku", description="Sorry for the inconvenience. The model is currently running using CPU, which might affect performance. We appreciate your understanding."
|
68 |
)
|
69 |
app.launch()
|