Spaces:
Build error
Build error
Samuel L Meyers
commited on
Commit
·
0b9f399
1
Parent(s):
5f80999
Reformat to actually fit API Doc standards
Browse files
app.py
CHANGED
|
@@ -97,7 +97,7 @@ def main():
|
|
| 97 |
with gr.Row(variant="panel"):
|
| 98 |
audio = gr.Audio()
|
| 99 |
|
| 100 |
-
def synthesize_audio(text_str: str, model_name_str: str, speaker_str: str
|
| 101 |
"""
|
| 102 |
gets utterance to synthesize from `text` Textbox
|
| 103 |
and speaker name from `speaker` dropdown list.
|
|
@@ -122,7 +122,7 @@ def main():
|
|
| 122 |
samples = tts.synthesize(text_str, speaker_str)
|
| 123 |
return gr.Audio.update(value=(tts.get_sampling_rate(), samples))
|
| 124 |
|
| 125 |
-
generate.click(synthesize_audio, inputs=[text, model_name, speaker], outputs=audio)
|
| 126 |
|
| 127 |
demo.queue(concurrency_count=1).launch()
|
| 128 |
|
|
|
|
| 97 |
with gr.Row(variant="panel"):
|
| 98 |
audio = gr.Audio()
|
| 99 |
|
| 100 |
+
def synthesize_audio(text_str: str, model_name_str: str, speaker_str: str):
|
| 101 |
"""
|
| 102 |
gets utterance to synthesize from `text` Textbox
|
| 103 |
and speaker name from `speaker` dropdown list.
|
|
|
|
| 122 |
samples = tts.synthesize(text_str, speaker_str)
|
| 123 |
return gr.Audio.update(value=(tts.get_sampling_rate(), samples))
|
| 124 |
|
| 125 |
+
generate.click(synthesize_audio, inputs=[text, model_name, speaker], outputs=audio, api_name="synthesize")
|
| 126 |
|
| 127 |
demo.queue(concurrency_count=1).launch()
|
| 128 |
|