Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,17 @@
|
|
1 |
import subprocess
|
2 |
-
|
3 |
# Install Gradio
|
4 |
subprocess.run(["pip", "install", "gradio"])
|
5 |
|
6 |
# Import Gradio
|
7 |
import gradio as gr
|
|
|
|
|
|
|
8 |
|
|
|
|
|
|
|
9 |
# Define your face swapping function here
|
10 |
def swapped_image(image):
|
11 |
# Your face swapping logic here
|
|
|
1 |
import subprocess
|
2 |
+
import time
|
3 |
# Install Gradio
|
4 |
subprocess.run(["pip", "install", "gradio"])
|
5 |
|
6 |
# Import Gradio
|
7 |
import gradio as gr
|
8 |
+
from gradio.themes.utils.theme_dropdown import create_theme_dropdown
|
9 |
+
|
10 |
+
dropdown, js = create_theme_dropdown()
|
11 |
|
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
|