hvaldez commited on
Commit
6b80d90
1 Parent(s): a17aefb

update to UI

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -66,14 +66,16 @@ def main():
66
  """
67
  )
68
  with gr.Row():
69
- with gr.Column():
70
- videos = [gr.Video(label=labels[i], format='mp4', height=256, min_width=340) for i in range(num_samples)]
71
- with gr.Column():
 
 
72
  text = gr.Text(label="Query", visible=False)
73
  label = gr.Text(label="Ground Truth")
74
  ours = gr.Text(label="SViTT-Ego prediction")
75
- btn = gr.Button("Predict", variant="primary")
76
- btn.click(predict, inputs=[text], outputs=[label, ours])
77
  inputs = [text]
78
  inputs.extend(videos)
79
  gr.Examples(examples=[[sample_text[i], x[0], x[1], x[2], x[3], x[4]] for i, x in enumerate(sample_videos)], inputs=inputs)
 
66
  """
67
  )
68
  with gr.Row():
69
+ videos = [
70
+ gr.Video(label=labels[i], format='mp4', height=256, width=256, autoplay=True)
71
+ for i in range(num_samples)
72
+ ]
73
+ with gr.Row():
74
  text = gr.Text(label="Query", visible=False)
75
  label = gr.Text(label="Ground Truth")
76
  ours = gr.Text(label="SViTT-Ego prediction")
77
+ btn = gr.Button("Predict", variant="primary")
78
+ btn.click(predict, inputs=[text], outputs=[label, ours])
79
  inputs = [text]
80
  inputs.extend(videos)
81
  gr.Examples(examples=[[sample_text[i], x[0], x[1], x[2], x[3], x[4]] for i, x in enumerate(sample_videos)], inputs=inputs)