RamAnanth1 commited on
Commit
e3ec47c
·
1 Parent(s): 6452498

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -9
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
- audio_input = gr.Audio(label = 'Record Audio Input',source="microphone",type="filepath")
141
- with gr.Row():
142
- transcribe_audio = gr.Button('Transcribe')
143
-
144
- with gr.Column():
145
- with gr.Row():
146
- transcript_output = gr.Textbox(label="Transcription in the language you spoke", lines = 3)
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