Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,10 +31,11 @@ model = Qwen3TTSModel.from_pretrained(
|
|
| 31 |
print("β
Model loaded!")
|
| 32 |
|
| 33 |
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 34 |
-
# TTS Generation Function
|
| 35 |
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
|
|
| 36 |
def generate_speech(text, speaker, voice_style):
|
| 37 |
-
"""Generate speech from text
|
| 38 |
if not text.strip():
|
| 39 |
return None, "β οΈ Please enter some text."
|
| 40 |
|
|
|
|
| 31 |
print("β
Model loaded!")
|
| 32 |
|
| 33 |
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 34 |
+
# TTS Generation Function
|
| 35 |
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 36 |
+
@spaces.GPU(duration=120)
|
| 37 |
def generate_speech(text, speaker, voice_style):
|
| 38 |
+
"""Generate speech from text."""
|
| 39 |
if not text.strip():
|
| 40 |
return None, "β οΈ Please enter some text."
|
| 41 |
|