Spaces:
Running
Running
Commit
·
d25b36f
1
Parent(s):
4172058
(wip)debug
Browse files
tts.py
CHANGED
|
@@ -216,6 +216,8 @@ def predict_index_tts(text, reference_audio_path=None):
|
|
| 216 |
text=text,
|
| 217 |
api_name="/gen_single"
|
| 218 |
)
|
|
|
|
|
|
|
| 219 |
print("index-tts result:", result)
|
| 220 |
return result
|
| 221 |
|
|
|
|
| 216 |
text=text,
|
| 217 |
api_name="/gen_single"
|
| 218 |
)
|
| 219 |
+
if type(result) != str:
|
| 220 |
+
result = result.get("value")
|
| 221 |
print("index-tts result:", result)
|
| 222 |
return result
|
| 223 |
|