Update app.py
Browse files
app.py
CHANGED
|
@@ -63,7 +63,6 @@ class MalianTTS:
|
|
| 63 |
raise Exception(f"Model loading failed: {str(e)}")
|
| 64 |
|
| 65 |
def synthesize(self, language: str, text: str) -> Tuple[Optional[Tuple[int, np.ndarray]], Optional[str]]:
|
| 66 |
-
"""Generate audio from text for the specified language"""
|
| 67 |
if not text.strip():
|
| 68 |
return None, "Please enter some text to synthesize."
|
| 69 |
|
|
|
|
| 63 |
raise Exception(f"Model loading failed: {str(e)}")
|
| 64 |
|
| 65 |
def synthesize(self, language: str, text: str) -> Tuple[Optional[Tuple[int, np.ndarray]], Optional[str]]:
|
|
|
|
| 66 |
if not text.strip():
|
| 67 |
return None, "Please enter some text to synthesize."
|
| 68 |
|