Commit ·
228feaf
1
Parent(s): 359a8b1
Reduce full workflow ZeroGPU duration
Browse files
app.py
CHANGED
|
@@ -491,7 +491,7 @@ def asr_gpu_test(audio_path: str | None) -> str:
|
|
| 491 |
return "\n".join(lines)
|
| 492 |
|
| 493 |
|
| 494 |
-
@spaces.GPU(duration=
|
| 495 |
def full_voicegate_gpu_test(audio_path: str | None, target_language: str) -> str:
|
| 496 |
lines = gpu_status_lines()
|
| 497 |
started = time.time()
|
|
@@ -508,7 +508,7 @@ def full_voicegate_gpu_test(audio_path: str | None, target_language: str) -> str
|
|
| 508 |
prompt = full_voicegate_workflow(audio_filename, prefix, target_language or "English")
|
| 509 |
prompt_id = submit_prompt(prompt)
|
| 510 |
lines.append(f"prompt_id={prompt_id}")
|
| 511 |
-
history = wait_for_history(prompt_id, timeout=
|
| 512 |
lines.extend(history_summary(history))
|
| 513 |
lines.append(f"elapsed_sec={time.time() - started:.1f}")
|
| 514 |
except Exception as exc:
|
|
|
|
| 491 |
return "\n".join(lines)
|
| 492 |
|
| 493 |
|
| 494 |
+
@spaces.GPU(duration=800)
|
| 495 |
def full_voicegate_gpu_test(audio_path: str | None, target_language: str) -> str:
|
| 496 |
lines = gpu_status_lines()
|
| 497 |
started = time.time()
|
|
|
|
| 508 |
prompt = full_voicegate_workflow(audio_filename, prefix, target_language or "English")
|
| 509 |
prompt_id = submit_prompt(prompt)
|
| 510 |
lines.append(f"prompt_id={prompt_id}")
|
| 511 |
+
history = wait_for_history(prompt_id, timeout=800)
|
| 512 |
lines.extend(history_summary(history))
|
| 513 |
lines.append(f"elapsed_sec={time.time() - started:.1f}")
|
| 514 |
except Exception as exc:
|