Spaces:
Runtime error
Runtime error
Fix audio bug
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ with gr.Blocks() as demo:
|
|
| 15 |
# Upload audio input and output fields
|
| 16 |
with gr.Tab("Upload audio"):
|
| 17 |
with gr.Row():
|
| 18 |
-
upload_input = gr.Audio(label="Audio
|
| 19 |
with gr.Column():
|
| 20 |
upload_output_1 = gr.Textbox(label="Text from the audio")
|
| 21 |
upload_output_2 = gr.Textbox(label="Speech emotion")
|
|
@@ -29,7 +29,7 @@ with gr.Blocks() as demo:
|
|
| 29 |
# Record audio input and output fields
|
| 30 |
with gr.Tab("Record audio"):
|
| 31 |
with gr.Row():
|
| 32 |
-
record_input = gr.Audio(label="Audio recording", source="microphone")
|
| 33 |
with gr.Column():
|
| 34 |
record_output_1 = gr.Textbox(label="Text from the audio")
|
| 35 |
record_output_2 = gr.Textbox(label="Speech emotion")
|
|
|
|
| 15 |
# Upload audio input and output fields
|
| 16 |
with gr.Tab("Upload audio"):
|
| 17 |
with gr.Row():
|
| 18 |
+
upload_input = gr.Audio(label="Audio file", source="upload", type="filepath")
|
| 19 |
with gr.Column():
|
| 20 |
upload_output_1 = gr.Textbox(label="Text from the audio")
|
| 21 |
upload_output_2 = gr.Textbox(label="Speech emotion")
|
|
|
|
| 29 |
# Record audio input and output fields
|
| 30 |
with gr.Tab("Record audio"):
|
| 31 |
with gr.Row():
|
| 32 |
+
record_input = gr.Audio(label="Audio recording", source="microphone", type="filepath")
|
| 33 |
with gr.Column():
|
| 34 |
record_output_1 = gr.Textbox(label="Text from the audio")
|
| 35 |
record_output_2 = gr.Textbox(label="Speech emotion")
|