tykiww commited on
Commit
d4dfd9a
·
verified ·
1 Parent(s): d2d64d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -26,9 +26,12 @@ def main(conf):
26
  with gr.TabItem(conf["layout"]["page_names"][1]):
27
 
28
  audio_input = gr.Audio(type="filepath", label="Upload Audio File")
29
- num_speakers_input = gr.Number(label="Number of Speakers",
30
- info="Please include ",
31
- value=2)
 
 
 
32
 
33
  process_button = gr.Button("Process")
34
  diarization_output = gr.Textbox(label="Diarization Output")
@@ -36,7 +39,7 @@ def main(conf):
36
 
37
  process_button.click(
38
  fn=process_meeting,
39
- inputs=[audio_input, num_speakers, supporting_details],
40
  outputs=[diarization_output, label_file_link]
41
  )
42
 
 
26
  with gr.TabItem(conf["layout"]["page_names"][1]):
27
 
28
  audio_input = gr.Audio(type="filepath", label="Upload Audio File")
29
+ with gr.Row():
30
+ num_speakers = gr.Number(label="Number of Speakers",
31
+ info="Please include ",
32
+ value=2)
33
+ name_input = gr.Textbox(label="Speaker name")
34
+ support_details = gr.Textbox(label="Speaker Details")
35
 
36
  process_button = gr.Button("Process")
37
  diarization_output = gr.Textbox(label="Diarization Output")
 
39
 
40
  process_button.click(
41
  fn=process_meeting,
42
+ inputs=[audio_input, num_speakers, name_input, support_details],
43
  outputs=[diarization_output, label_file_link]
44
  )
45