Spaces:
Running on Zero
Running on Zero
lulavc commited on
Commit ·
73f0873
1
Parent(s): 673f772
fix: reduce GPU duration 180→120s and force wav format for Linux mic recording
Browse files
app.py
CHANGED
|
@@ -232,7 +232,7 @@ def _run_echomimic(portrait_img, audio_path: str, width: int, height: int,
|
|
| 232 |
|
| 233 |
|
| 234 |
# ── Phase 1: Generate video endpoint ─────────────────────────────────────────
|
| 235 |
-
@spaces.GPU(duration=
|
| 236 |
def generate(portrait_img, input_mode: str, text: str, tts_language: str,
|
| 237 |
voice_ref, audio_file, aspect_ratio: str, emotion: float,
|
| 238 |
num_steps: int, guidance_scale: float, lang: str,
|
|
@@ -283,7 +283,7 @@ def generate(portrait_img, input_mode: str, text: str, tts_language: str,
|
|
| 283 |
|
| 284 |
|
| 285 |
# ── Phase 2: Dubbing endpoint ─────────────────────────────────────────────────
|
| 286 |
-
@spaces.GPU(duration=
|
| 287 |
def dub_video(video_input, target_lang: str, voice_ref, emotion: float, lang: str,
|
| 288 |
progress=gr.Progress(track_tqdm=True)):
|
| 289 |
|
|
|
|
| 232 |
|
| 233 |
|
| 234 |
# ── Phase 1: Generate video endpoint ─────────────────────────────────────────
|
| 235 |
+
@spaces.GPU(duration=120)
|
| 236 |
def generate(portrait_img, input_mode: str, text: str, tts_language: str,
|
| 237 |
voice_ref, audio_file, aspect_ratio: str, emotion: float,
|
| 238 |
num_steps: int, guidance_scale: float, lang: str,
|
|
|
|
| 283 |
|
| 284 |
|
| 285 |
# ── Phase 2: Dubbing endpoint ─────────────────────────────────────────────────
|
| 286 |
+
@spaces.GPU(duration=120)
|
| 287 |
def dub_video(video_input, target_lang: str, voice_ref, emotion: float, lang: str,
|
| 288 |
progress=gr.Progress(track_tqdm=True)):
|
| 289 |
|