devkunalnaik commited on
Commit
fd32b5e
Β·
1 Parent(s): 3373714

Fix: upgrade to Gradio 5 (Python 3.13 compatible), replace TabItem with Tab

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. app.py +4 -4
  3. requirements.txt +1 -1
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: πŸ”„
4
  colorFrom: blue
5
  colorTo: purple
6
  sdk: gradio
7
- sdk_version: 4.44.0
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.TabItem("Face Swap Β· Image"):
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.TabItem("Body Swap Β· Image"):
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.TabItem("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,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.TabItem("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)."
 
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==4.44.0
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