Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -121,7 +121,7 @@ with demo:
|
|
121 |
saved = gr.Textbox()
|
122 |
savedAll = gr.Textbox()
|
123 |
TTSchoice = gr.inputs.Radio( label="Pick a TTS Model", choices=MODEL_NAMES, )
|
124 |
-
|
125 |
|
126 |
b1 = gr.Button("Recognize Speech")
|
127 |
b2 = gr.Button("Classify Sentiment")
|
@@ -133,7 +133,7 @@ with demo:
|
|
133 |
b2.click(text_to_sentiment, inputs=text, outputs=label)
|
134 |
b3.click(upsert, inputs=text, outputs=saved)
|
135 |
b4.click(selectall, inputs=text, outputs=savedAll)
|
136 |
-
b5.click(tts, inputs={text,TTSchoice}, outputs=
|
137 |
|
138 |
demo.launch(share=True)
|
139 |
|
|
|
121 |
saved = gr.Textbox()
|
122 |
savedAll = gr.Textbox()
|
123 |
TTSchoice = gr.inputs.Radio( label="Pick a TTS Model", choices=MODEL_NAMES, )
|
124 |
+
audio = gr.Audio(label="Output", interactive=False)
|
125 |
|
126 |
b1 = gr.Button("Recognize Speech")
|
127 |
b2 = gr.Button("Classify Sentiment")
|
|
|
133 |
b2.click(text_to_sentiment, inputs=text, outputs=label)
|
134 |
b3.click(upsert, inputs=text, outputs=saved)
|
135 |
b4.click(selectall, inputs=text, outputs=savedAll)
|
136 |
+
b5.click(tts, inputs={text,TTSchoice}, outputs=audio)
|
137 |
|
138 |
demo.launch(share=True)
|
139 |
|