RamAnanth1 commited on
Commit
648fa39
·
1 Parent(s): b67345a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -35,14 +35,14 @@ def translate(audio):
35
  print("Transcript: " + transcription.text)
36
  print("Translated: " + translation.text)
37
 
38
- return transcription.language
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", show_label=False)
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