Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def tts(text: str):
|
|
20 |
text=text,
|
21 |
api_name="/predict"
|
22 |
)
|
23 |
-
return result
|
24 |
except Exception as e:
|
25 |
print(e)
|
26 |
raise gr.Error(e)
|
|
|
20 |
text=text,
|
21 |
api_name="/predict"
|
22 |
)
|
23 |
+
return result[0]
|
24 |
except Exception as e:
|
25 |
print(e)
|
26 |
raise gr.Error(e)
|