tykiww commited on
Commit
075f4a5
1 Parent(s): 1829484

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -11
app.py CHANGED
@@ -12,11 +12,6 @@ def process_meeting(audio_input, num_speakers, speaker_names):
12
  return answer
13
 
14
 
15
- def update_table(num_speakers):
16
- print(num_speakers)
17
- return gr.Dataframe(row_count=(num_speakers,"fixed"))
18
-
19
-
20
 
21
  def main(conf):
22
 
@@ -36,17 +31,13 @@ def main(conf):
36
  label="Number of Speakers",
37
  value=2)
38
  speaker_names = gr.Dataframe(
39
- label="Names and Additional Info",
40
  headers=["Name", "Supporting Details"],
41
  datatype=["str", "str"],
42
- row_count=(1,"fixed"),
43
  col_count=(2, "fixed"),
44
  )
45
 
46
-
47
- speaker_names.change(update_table,
48
- num_speakers,
49
- speaker_names)
50
 
51
  process_button = gr.Button("Process")
52
  diarization_output = gr.Textbox(label="Diarization Output")
 
12
  return answer
13
 
14
 
 
 
 
 
 
15
 
16
  def main(conf):
17
 
 
31
  label="Number of Speakers",
32
  value=2)
33
  speaker_names = gr.Dataframe(
34
+ label="Type your names and details. Hit Return to create a new row.",
35
  headers=["Name", "Supporting Details"],
36
  datatype=["str", "str"],
37
+ row_count=(5,"fixed"),
38
  col_count=(2, "fixed"),
39
  )
40
 
 
 
 
 
41
 
42
  process_button = gr.Button("Process")
43
  diarization_output = gr.Textbox(label="Diarization Output")