pragnakalp commited on
Commit
361a068
1 Parent(s): 4b17466

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -127,7 +127,7 @@ def return_audio_clip(audio_text):
127
  filepath = os.path.join("pre_recoreded",post_file_name)
128
  return filepath
129
 
130
- with gr.Blocks(css=".gradio-container {background-color: lightgray;}") as blocks:
131
  gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>"
132
  + "Audio Emotion Detection"
133
  + "</h1>")
@@ -137,7 +137,7 @@ with gr.Blocks(css=".gradio-container {background-color: lightgray;}") as blocks
137
  audio_ui=gr.Audio()
138
  input_audio_text.change(return_audio_clip,input_audio_text,audio_ui)
139
  output_text = gr.Textbox(lable="Prdicted emotion")
140
- sub_btn = gr.Button("Submit")
141
  gr.Button.style(sub_btn,bg_color='orange',text_color='white')
142
  with gr.Column():
143
  audio=gr.Audio(labele="Recored audio",source="microphone", type="file")
 
127
  filepath = os.path.join("pre_recoreded",post_file_name)
128
  return filepath
129
 
130
+ with gr.Blocks(css=".gradio-container {background-color: lightgray;} #btn {background-color: orange;}") as blocks:
131
  gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>"
132
  + "Audio Emotion Detection"
133
  + "</h1>")
 
137
  audio_ui=gr.Audio()
138
  input_audio_text.change(return_audio_clip,input_audio_text,audio_ui)
139
  output_text = gr.Textbox(lable="Prdicted emotion")
140
+ sub_btn = gr.Button("Submit",elem_id="btn")
141
  gr.Button.style(sub_btn,bg_color='orange',text_color='white')
142
  with gr.Column():
143
  audio=gr.Audio(labele="Recored audio",source="microphone", type="file")