reab5555 commited on
Commit
897d8ef
·
verified ·
1 Parent(s): 899f0f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -67,8 +67,15 @@ def analyze_video(video_path, progress=gr.Progress()):
67
 
68
  output_components.append(f"Completed in {int(execution_time)} seconds.") # execution info
69
 
 
 
 
 
70
  return output_components
71
 
 
 
 
72
  def use_example():
73
  return "examples/Scenes.From.A.Marriage.US.mp4"
74
 
 
67
 
68
  output_components.append(f"Completed in {int(execution_time)} seconds.") # execution info
69
 
70
+ # Pad with None for any missing speakers
71
+ while len(output_components) < 28:
72
+ output_components.extend([gr.update(visible=False)] * 9)
73
+
74
  return output_components
75
 
76
+ def update_output(*args):
77
+ return [gr.update(value=arg, visible=arg is not None) for arg in args]
78
+
79
  def use_example():
80
  return "examples/Scenes.From.A.Marriage.US.mp4"
81