Flux9665 commited on
Commit
3ad2c3a
·
1 Parent(s): 8a730f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -64,8 +64,8 @@ class TTS_Interface:
64
  }
65
 
66
  def read(self, prompt, language, accent, speaker):
67
- language = language.rstrip(" Text")
68
- accent = accent.rstrip(" Accent")
69
  if len(prompt) > 2000:
70
  if language == "English":
71
  prompt = "Your input was too long. Please try either a shorter text or split it into several parts."
 
64
  }
65
 
66
  def read(self, prompt, language, accent, speaker):
67
+ language = language.split()[0]
68
+ accent = accent.split()[0]
69
  if len(prompt) > 2000:
70
  if language == "English":
71
  prompt = "Your input was too long. Please try either a shorter text or split it into several parts."