alvi123 commited on
Commit
077f7d5
1 Parent(s): e6e3fd6
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -73,7 +73,7 @@ with gr.Blocks() as app:
73
  plot_record_c = gr.Plot(label='Waveform Of the Audio')
74
 
75
  record_button = gr.Button("Detection Parts of Speech")
76
- record_output = gr.Text(label = 'result')
77
 
78
  with gr.Tab("Upload Audio File"):
79
  gr.Markdown(
@@ -94,11 +94,11 @@ with gr.Blocks() as app:
94
  plot_upload_c = gr.Plot(label='Waveform Of the Audio')
95
 
96
  upload_button = gr.Button("Detection Parts of Speech")
97
- upload_output = gr.Text(label = 'result')
98
 
99
  record_button.click(emotion_predict, inputs=record_input, outputs=record_output)
100
- upload_button.click(emotion_predict, inputs=upload_input, outputs=upload_output)
101
  plot_record.click(plot_fig, inputs=record_input, outputs=plot_record_c)
102
- plot_upload.click(plot_fig, inputs=upload_input, outputs=plot_upload_c)
103
 
104
  app.launch()
 
73
  plot_record_c = gr.Plot(label='Waveform Of the Audio')
74
 
75
  record_button = gr.Button("Detection Parts of Speech")
76
+ record_output = gr.Text(label = 'detected')
77
 
78
  with gr.Tab("Upload Audio File"):
79
  gr.Markdown(
 
94
  plot_upload_c = gr.Plot(label='Waveform Of the Audio')
95
 
96
  upload_button = gr.Button("Detection Parts of Speech")
97
+ upload_output = gr.Text(label = 'detected')
98
 
99
  record_button.click(emotion_predict, inputs=record_input, outputs=record_output)
100
+ upload_button.click(emotion_predict, inputs=upload_input, outputs=upload_output)
101
  plot_record.click(plot_fig, inputs=record_input, outputs=plot_record_c)
102
+ plot_upload.click(plot_fig, inputs=upload_input, outputs=plot_upload_c)
103
 
104
  app.launch()