Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ celebrity_voices = {
|
|
21 |
"Scarlett Johansson": "path/to/scarlett_johansson_sample.wav",
|
22 |
"David Attenborough": "path/to/david_attenborough_sample.wav",
|
23 |
}
|
24 |
-
@spaces.GPU(
|
25 |
def tts_generate(text, voice, language):
|
26 |
with tempfile.NamedTemporaryFile(delete=False, suffix=".wav") as temp_audio:
|
27 |
temp_audio_path = temp_audio.name
|
|
|
21 |
"Scarlett Johansson": "path/to/scarlett_johansson_sample.wav",
|
22 |
"David Attenborough": "path/to/david_attenborough_sample.wav",
|
23 |
}
|
24 |
+
@spaces.GPU(duration=120)
|
25 |
def tts_generate(text, voice, language):
|
26 |
with tempfile.NamedTemporaryFile(delete=False, suffix=".wav") as temp_audio:
|
27 |
temp_audio_path = temp_audio.name
|