Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ def forward_gpu(ps, ref_s, speed):
|
|
| 25 |
return models[True](ps, ref_s, speed)
|
| 26 |
|
| 27 |
def generate_first(text, voice='af_heart', speed=1, use_gpu=CUDA_AVAILABLE):
|
| 28 |
-
text = f"[
|
| 29 |
text = text if CHAR_LIMIT is None else text.strip()[:CHAR_LIMIT]
|
| 30 |
print("[TEST]", text)
|
| 31 |
pipeline = pipelines[voice[0]]
|
|
|
|
| 25 |
return models[True](ps, ref_s, speed)
|
| 26 |
|
| 27 |
def generate_first(text, voice='af_heart', speed=1, use_gpu=CUDA_AVAILABLE):
|
| 28 |
+
text = f"[_](/{indo_to_ipa(text)}/)"
|
| 29 |
text = text if CHAR_LIMIT is None else text.strip()[:CHAR_LIMIT]
|
| 30 |
print("[TEST]", text)
|
| 31 |
pipeline = pipelines[voice[0]]
|