Spaces:
Sleeping
Sleeping
zhuowen999
commited on
Commit
•
1fe81d7
1
Parent(s):
3767c8b
Update app.py
Browse files
app.py
CHANGED
@@ -152,9 +152,9 @@ if __name__ == "__main__":
|
|
152 |
""")
|
153 |
btn.click(tts_fn,
|
154 |
inputs=[text, speaker, sdp_ratio, noise_scale, noise_scale_w, length_scale],
|
155 |
-
outputs=[text_output, audio_output])
|
156 |
|
157 |
# webbrowser.open("http://127.0.0.1:6006")
|
158 |
# app.launch(server_port=6006, show_error=True)
|
159 |
|
160 |
-
app.launch(show_error=True)
|
|
|
152 |
""")
|
153 |
btn.click(tts_fn,
|
154 |
inputs=[text, speaker, sdp_ratio, noise_scale, noise_scale_w, length_scale],
|
155 |
+
outputs=[text_output, audio_output],api_name="voice")
|
156 |
|
157 |
# webbrowser.open("http://127.0.0.1:6006")
|
158 |
# app.launch(server_port=6006, show_error=True)
|
159 |
|
160 |
+
app.launch(show_error=True,show_api=True)
|