Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import numpy as np
|
|
| 3 |
import torch
|
| 4 |
from src.chatterbox.mtl_tts import ChatterboxMultilingualTTS, SUPPORTED_LANGUAGES
|
| 5 |
import gradio as gr
|
| 6 |
-
|
| 7 |
|
| 8 |
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
|
| 9 |
print(f"🚀 Running on device: {DEVICE}")
|
|
@@ -176,7 +176,7 @@ def resolve_audio_prompt(language_id: str, provided_path: str | None) -> str | N
|
|
| 176 |
return LANGUAGE_CONFIG.get(language_id, {}).get("audio")
|
| 177 |
|
| 178 |
|
| 179 |
-
|
| 180 |
def generate_tts_audio(
|
| 181 |
text_input: str,
|
| 182 |
language_id: str,
|
|
|
|
| 3 |
import torch
|
| 4 |
from src.chatterbox.mtl_tts import ChatterboxMultilingualTTS, SUPPORTED_LANGUAGES
|
| 5 |
import gradio as gr
|
| 6 |
+
|
| 7 |
|
| 8 |
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
|
| 9 |
print(f"🚀 Running on device: {DEVICE}")
|
|
|
|
| 176 |
return LANGUAGE_CONFIG.get(language_id, {}).get("audio")
|
| 177 |
|
| 178 |
|
| 179 |
+
|
| 180 |
def generate_tts_audio(
|
| 181 |
text_input: str,
|
| 182 |
language_id: str,
|