Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import subprocess
|
2 |
import time
|
|
|
3 |
# Install Gradio
|
4 |
subprocess.run(["pip", "install", "gradio"])
|
5 |
|
@@ -12,10 +13,12 @@ dropdown, js = create_theme_dropdown()
|
|
12 |
with gr.Blocks(theme='victorisgeek/gray') as demo:
|
13 |
with gr.Row(equal_height=True):
|
14 |
with gr.Column(scale=10):
|
|
|
|
|
15 |
# Define your face swapping function here
|
16 |
def swapped_image(image):
|
17 |
# Your face swapping logic here
|
18 |
-
return
|
19 |
|
20 |
# Create Gradio interface
|
21 |
iface = gr.Interface(fn=swapped_image,
|
|
|
1 |
import subprocess
|
2 |
import time
|
3 |
+
|
4 |
# Install Gradio
|
5 |
subprocess.run(["pip", "install", "gradio"])
|
6 |
|
|
|
13 |
with gr.Blocks(theme='victorisgeek/gray') as demo:
|
14 |
with gr.Row(equal_height=True):
|
15 |
with gr.Column(scale=10):
|
16 |
+
pass # Placeholder for any additional code needed here
|
17 |
+
|
18 |
# Define your face swapping function here
|
19 |
def swapped_image(image):
|
20 |
# Your face swapping logic here
|
21 |
+
return image # Return the modified image
|
22 |
|
23 |
# Create Gradio interface
|
24 |
iface = gr.Interface(fn=swapped_image,
|