File size: 971 Bytes
744837f
1ce4e4b
744837f
 
1ce4e4b
744837f
 
 
1ce4e4b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
title: Dub Module Step1-Step3 App
sdk: gradio
app_file: app.py
python_version: "3.10"
pinned: false
---

# Dub Module Gradio App (Step 1 + Step 3)

This folder creates a new Gradio app based on the workflow described in [`how_to.txt`](../how_to.txt).

Implemented workflow:
- Step 1 (in app): Upload main video, extract cropped face video, save `face_coords_avg.pkl`, and download both outputs.
- Step 2 (manual): Not part of app.
- Step 3 (in app): Upload original video + synced face video + `face_coords_avg.pkl` to generate final output video.

Notes:
- Audio upload is intentionally removed. The app attempts to use audio from the synced face video.
- Generated runtime files are stored under `work/`.

## Files
- `app.py`: Gradio UI for Step 1 and Step 3.
- `pipeline.py`: Face extraction, coordinate generation, merging, and audio muxing.
- `requirements.txt`: Package versions known to work.

## Run

```bash
pip install -r requirements.txt
python app.py
```