Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
30 |
-
|
31 |
-
|
|
|
|
|
|
|
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,
|
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 |
|