bhacquin commited on
Commit
17e1a2b
·
verified ·
1 Parent(s): 78abc8f

Update demo.py

Browse files

Fixed a middle button forgotten.

Files changed (1) hide show
  1. demo.py +3 -3
demo.py CHANGED
@@ -96,7 +96,7 @@ def experiment_to_dict(experiment, skip=False):
96
  def generate_new_experiment() -> Experiment:
97
  """
98
  Generates a new experiment by randomly selecting a sample number and fetching corresponding videos from multiple folders.
99
- The positions of the videos (left/middle/right) are randomized.
100
  """
101
  # Randomly select an action and folder
102
 
@@ -331,7 +331,7 @@ with gr.Blocks(title="Unsupervised Video Editing", css=css) as demo:
331
  select_left.click(
332
  fn=lambda exp, msg: select_and_load("left", exp, msg),
333
  inputs=[experiment, message_component],
334
- outputs=[experiment, video_left_component, video_middle_component, video_right_component, message_component],
335
  queue=True,
336
  show_progress=True
337
  )
@@ -339,7 +339,7 @@ with gr.Blocks(title="Unsupervised Video Editing", css=css) as demo:
339
  select_right.click(
340
  fn=lambda exp, msg: select_and_load("right", exp, msg),
341
  inputs=[experiment, message_component],
342
- outputs=[experiment, video_left_component, video_middle_component, video_right_component, message_component],
343
  queue=True,
344
  show_progress=True
345
  )
 
96
  def generate_new_experiment() -> Experiment:
97
  """
98
  Generates a new experiment by randomly selecting a sample number and fetching corresponding videos from multiple folders.
99
+ The positions of the videos (left/right) are randomized.
100
  """
101
  # Randomly select an action and folder
102
 
 
331
  select_left.click(
332
  fn=lambda exp, msg: select_and_load("left", exp, msg),
333
  inputs=[experiment, message_component],
334
+ outputs=[experiment, video_left_component, video_right_component, message_component],
335
  queue=True,
336
  show_progress=True
337
  )
 
339
  select_right.click(
340
  fn=lambda exp, msg: select_and_load("right", exp, msg),
341
  inputs=[experiment, message_component],
342
+ outputs=[experiment, video_left_component, video_right_component, message_component],
343
  queue=True,
344
  show_progress=True
345
  )