Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -64,8 +64,8 @@ class TTS_Interface:
|
|
64 |
}
|
65 |
|
66 |
def read(self, prompt, language, accent, speaker):
|
67 |
-
language = language.
|
68 |
-
accent = 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."
|