Files changed (1) hide show
  1. app.py +2 -2
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("Please enter text to convert.")
17
  if not voice:
18
- return None, gr.Warning("Please select a voice.")
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}%"