Update app.py
Browse files
app.py
CHANGED
@@ -222,6 +222,7 @@ with gr.Blocks(
|
|
222 |
label='MyAlexa'
|
223 |
)
|
224 |
with gr.Row():
|
|
|
225 |
with gr.Column():
|
226 |
gr.HTML(
|
227 |
"<p><b>Step 1:</b> Upload an audio file or record with your microphone.</p>"
|
@@ -232,7 +233,6 @@ with gr.Blocks(
|
|
232 |
type="filepath"
|
233 |
)
|
234 |
|
235 |
-
|
236 |
with gr.Column():
|
237 |
|
238 |
gr.HTML("<p><b>Step 2:</b> Submit your recorded or uploaded audio as input and wait for MyAlexa's response.</p>")
|
@@ -250,6 +250,8 @@ with gr.Blocks(
|
|
250 |
visible=True # set to True to see processing time of asr transcription
|
251 |
)
|
252 |
|
|
|
|
|
253 |
out_audio = gr.Audio( # Shows an audio player for the generated response
|
254 |
value = None,
|
255 |
label="Response Voice Player",
|
|
|
222 |
label='MyAlexa'
|
223 |
)
|
224 |
with gr.Row():
|
225 |
+
|
226 |
with gr.Column():
|
227 |
gr.HTML(
|
228 |
"<p><b>Step 1:</b> Upload an audio file or record with your microphone.</p>"
|
|
|
233 |
type="filepath"
|
234 |
)
|
235 |
|
|
|
236 |
with gr.Column():
|
237 |
|
238 |
gr.HTML("<p><b>Step 2:</b> Submit your recorded or uploaded audio as input and wait for MyAlexa's response.</p>")
|
|
|
250 |
visible=True # set to True to see processing time of asr transcription
|
251 |
)
|
252 |
|
253 |
+
gr.HTML("<p><b>Step 3 [Optional]:</b> Replay MyAlexa's voice response.</p>")
|
254 |
+
|
255 |
out_audio = gr.Audio( # Shows an audio player for the generated response
|
256 |
value = None,
|
257 |
label="Response Voice Player",
|