Spaces:
Runtime error
Runtime error
Commit
·
648fa39
1
Parent(s):
b67345a
Update app.py
Browse files
app.py
CHANGED
@@ -35,14 +35,14 @@ def translate(audio):
|
|
35 |
print("Transcript: " + transcription.text)
|
36 |
print("Translated: " + translation.text)
|
37 |
|
38 |
-
return transcription.
|
39 |
|
40 |
gr.Markdown("""
|
41 |
# Emotion Detection From Speech Using Whisper
|
42 |
|
43 |
""", elem_id="about")
|
44 |
|
45 |
-
audio_input = gr.Audio(source="microphone",type="filepath"
|
46 |
|
47 |
transcript_output = gr.Textbox(label="Transcription in your the language you spoke")
|
48 |
|
|
|
35 |
print("Transcript: " + transcription.text)
|
36 |
print("Translated: " + translation.text)
|
37 |
|
38 |
+
return transcription.text
|
39 |
|
40 |
gr.Markdown("""
|
41 |
# Emotion Detection From Speech Using Whisper
|
42 |
|
43 |
""", elem_id="about")
|
44 |
|
45 |
+
audio_input = gr.Audio(label = 'Record Audio Input',source="microphone",type="filepath")
|
46 |
|
47 |
transcript_output = gr.Textbox(label="Transcription in your the language you spoke")
|
48 |
|