Update fully working MyAlexa app.py
Browse files
app.py
CHANGED
@@ -248,7 +248,7 @@ with gr.Blocks(
|
|
248 |
interactive=False,
|
249 |
placeholder="Transcribed text will appear here.",
|
250 |
elem_id="chat_input",
|
251 |
-
visible=
|
252 |
)
|
253 |
|
254 |
gr.HTML("<p><b>Step 3 [Optional]:</b> Replay MyAlexa's voice response.</p>")
|
@@ -257,7 +257,7 @@ with gr.Blocks(
|
|
257 |
value = None,
|
258 |
label="Response Voice Player",
|
259 |
show_label=True,
|
260 |
-
visible=
|
261 |
)
|
262 |
|
263 |
chat_msg = chat_input.change(add_message, [chatbot, chat_input], [chatbot], api_name="add_message_in_chatbot")
|
|
|
248 |
interactive=False,
|
249 |
placeholder="Transcribed text will appear here.",
|
250 |
elem_id="chat_input",
|
251 |
+
visible=False # set to True to see processing time of asr transcription
|
252 |
)
|
253 |
|
254 |
gr.HTML("<p><b>Step 3 [Optional]:</b> Replay MyAlexa's voice response.</p>")
|
|
|
257 |
value = None,
|
258 |
label="Response Voice Player",
|
259 |
show_label=True,
|
260 |
+
visible=False # set to True to see processing time of initial tts audio generation
|
261 |
)
|
262 |
|
263 |
chat_msg = chat_input.change(add_message, [chatbot, chat_input], [chatbot], api_name="add_message_in_chatbot")
|