RamAnanth1 commited on
Commit
a846d22
·
1 Parent(s): dbe0d2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -42,9 +42,16 @@ with gr.Blocks() as demo:
42
  # Emotion Detection From Speech Using Whisper
43
 
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
 
49
- iface = gr.Interface(fn=translate, inputs=audio_input, outputs=transcript_output)
50
  demo.launch()
 
42
  # Emotion Detection From Speech Using Whisper
43
 
44
  """)
 
45
 
46
+ with gr.Column():
47
+ audio_input = gr.Audio(label = 'Record Audio Input',source="microphone",type="filepath")
48
+ with gr.Row():
49
+ transcribe_audio = gr.Button('Transcribe')
50
+
51
+ with gr.Column():
52
+ transcript_output = gr.Textbox(label="Transcription in your the language you spoke")
53
+
54
+ transcribe_audio.click(translate, inputs = audio_input, outputs = transcript_output)
55
+
56
 
 
57
  demo.launch()