--- 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 ```