Update app.py
#1
by
manoelvitorsilvasantos
- opened
app.py
CHANGED
@@ -13,9 +13,9 @@ async def get_voices():
|
|
13 |
# Text-to-speech function
|
14 |
async def text_to_speech(text, voice, rate, pitch):
|
15 |
if not text.strip():
|
16 |
-
return None, gr.Warning("
|
17 |
if not voice:
|
18 |
-
return None, gr.Warning("
|
19 |
|
20 |
voice_short_name = voice.split(" - ")[0]
|
21 |
rate_str = f"{rate:+d}%"
|
|
|
13 |
# Text-to-speech function
|
14 |
async def text_to_speech(text, voice, rate, pitch):
|
15 |
if not text.strip():
|
16 |
+
return None, gr.Warning("Por favor, Entre com o texto para converter.")
|
17 |
if not voice:
|
18 |
+
return None, gr.Warning("Selecione a Voz.")
|
19 |
|
20 |
voice_short_name = voice.split(" - ")[0]
|
21 |
rate_str = f"{rate:+d}%"
|