Spaces:
Running
Running
Commit Β·
fd32b5e
1
Parent(s): 3373714
Fix: upgrade to Gradio 5 (Python 3.13 compatible), replace TabItem with Tab
Browse files- README.md +1 -1
- app.py +4 -4
- requirements.txt +1 -1
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: π
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: purple
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: mit
|
|
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: purple
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 5.9.1
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: mit
|
app.py
CHANGED
|
@@ -128,7 +128,7 @@ with gr.Blocks(title="Face & Body Swapper", theme=gr.themes.Soft()) as demo:
|
|
| 128 |
with gr.Tabs():
|
| 129 |
|
| 130 |
# ββ Tab 1: Face Swap β Image ββββββββββββββββββββββββββββββββββββββββββ
|
| 131 |
-
with gr.
|
| 132 |
gr.Markdown(
|
| 133 |
"The **source** face is placed onto every detected face in the **target** image."
|
| 134 |
)
|
|
@@ -152,7 +152,7 @@ with gr.Blocks(title="Face & Body Swapper", theme=gr.themes.Soft()) as demo:
|
|
| 152 |
)
|
| 153 |
|
| 154 |
# ββ Tab 2: Body Swap β Image ββββββββββββββββββββββββββββββββββββββββββ
|
| 155 |
-
with gr.
|
| 156 |
gr.Markdown(
|
| 157 |
"The **source** person's body is transplanted into the **target** scene."
|
| 158 |
)
|
|
@@ -176,7 +176,7 @@ with gr.Blocks(title="Face & Body Swapper", theme=gr.themes.Soft()) as demo:
|
|
| 176 |
)
|
| 177 |
|
| 178 |
# ββ Tab 3: Face Swap β Video ββββββββββββββββββββββββββββββββββββββββββ
|
| 179 |
-
with gr.
|
| 180 |
gr.Markdown(
|
| 181 |
"Applies face swap to every frame of the **target** video. "
|
| 182 |
"Max video length: **300 frames** (~10 s at 30 fps)."
|
|
@@ -201,7 +201,7 @@ with gr.Blocks(title="Face & Body Swapper", theme=gr.themes.Soft()) as demo:
|
|
| 201 |
)
|
| 202 |
|
| 203 |
# ββ Tab 4: Body Swap β Video ββββββββββββββββββββββββββββββββββββββββββ
|
| 204 |
-
with gr.
|
| 205 |
gr.Markdown(
|
| 206 |
"Applies body swap to every frame of the **target** video. "
|
| 207 |
"Max video length: **300 frames** (~10 s at 30 fps)."
|
|
|
|
| 128 |
with gr.Tabs():
|
| 129 |
|
| 130 |
# ββ Tab 1: Face Swap β Image ββββββββββββββββββββββββββββββββββββββββββ
|
| 131 |
+
with gr.Tab("Face Swap Β· Image"):
|
| 132 |
gr.Markdown(
|
| 133 |
"The **source** face is placed onto every detected face in the **target** image."
|
| 134 |
)
|
|
|
|
| 152 |
)
|
| 153 |
|
| 154 |
# ββ Tab 2: Body Swap β Image ββββββββββββββββββββββββββββββββββββββββββ
|
| 155 |
+
with gr.Tab("Body Swap Β· Image"):
|
| 156 |
gr.Markdown(
|
| 157 |
"The **source** person's body is transplanted into the **target** scene."
|
| 158 |
)
|
|
|
|
| 176 |
)
|
| 177 |
|
| 178 |
# ββ Tab 3: Face Swap β Video ββββββββββββββββββββββββββββββββββββββββββ
|
| 179 |
+
with gr.Tab("Face Swap Β· Video"):
|
| 180 |
gr.Markdown(
|
| 181 |
"Applies face swap to every frame of the **target** video. "
|
| 182 |
"Max video length: **300 frames** (~10 s at 30 fps)."
|
|
|
|
| 201 |
)
|
| 202 |
|
| 203 |
# ββ Tab 4: Body Swap β Video ββββββββββββββββββββββββββββββββββββββββββ
|
| 204 |
+
with gr.Tab("Body Swap Β· Video"):
|
| 205 |
gr.Markdown(
|
| 206 |
"Applies body swap to every frame of the **target** video. "
|
| 207 |
"Max video length: **300 frames** (~10 s at 30 fps)."
|
requirements.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
# Core UI
|
| 2 |
-
gradio=
|
| 3 |
|
| 4 |
# Deep Learning
|
| 5 |
torch>=2.1.0
|
|
|
|
| 1 |
# Core UI
|
| 2 |
+
gradio>=5.9.0
|
| 3 |
|
| 4 |
# Deep Learning
|
| 5 |
torch>=2.1.0
|