Spaces:
Runtime error
Runtime error
Commit
·
e3ec47c
1
Parent(s):
6452498
Update app.py
Browse files
app.py
CHANGED
|
@@ -135,16 +135,14 @@ with gr.Blocks(css = css) as demo:
|
|
| 135 |
''')
|
| 136 |
|
| 137 |
with gr.Row():
|
| 138 |
-
with gr.Column():
|
| 139 |
#gr.Markdown(""" ### Record audio """)
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
with gr.
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
emotion_output = gr.Textbox(label = "Detected Emotion")
|
| 148 |
|
| 149 |
transcribe_audio.click(translate_and_classify, inputs = audio_input, outputs = [transcript_output,emotion_output])
|
| 150 |
|
|
|
|
| 135 |
''')
|
| 136 |
|
| 137 |
with gr.Row():
|
|
|
|
| 138 |
#gr.Markdown(""" ### Record audio """)
|
| 139 |
+
audio_input = gr.Audio(label = 'Record Audio Input',source="microphone",type="filepath")
|
| 140 |
+
with gr.Row():
|
| 141 |
+
transcribe_audio = gr.Button('Transcribe')
|
| 142 |
+
|
| 143 |
+
with gr.Row():
|
| 144 |
+
transcript_output = gr.Textbox(label="Transcription in the language you spoke", lines = 3)
|
| 145 |
+
emotion_output = gr.Textbox(label = "Detected Emotion")
|
|
|
|
| 146 |
|
| 147 |
transcribe_audio.click(translate_and_classify, inputs = audio_input, outputs = [transcript_output,emotion_output])
|
| 148 |
|