Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def parse_multilingual_text(input_text):
|
|
37 |
segments = re.findall(pattern, input_text)
|
38 |
return [(lang, text.strip()) for lang, text in segments if lang in LANGUAGES.keys()]
|
39 |
|
40 |
-
@spaces.GPU
|
41 |
def generate_segment_audio(text, lang, speaker_url, pipe):
|
42 |
if not isinstance(text, str):
|
43 |
text = text.decode("utf-8") if isinstance(text, bytes) else str(text)
|
|
|
37 |
segments = re.findall(pattern, input_text)
|
38 |
return [(lang, text.strip()) for lang, text in segments if lang in LANGUAGES.keys()]
|
39 |
|
40 |
+
@spaces.GPU
|
41 |
def generate_segment_audio(text, lang, speaker_url, pipe):
|
42 |
if not isinstance(text, str):
|
43 |
text = text.decode("utf-8") if isinstance(text, bytes) else str(text)
|