Spaces:
Runtime error
Runtime error
update to UI
Browse files
app.py
CHANGED
@@ -66,14 +66,16 @@ def main():
|
|
66 |
"""
|
67 |
)
|
68 |
with gr.Row():
|
69 |
-
|
70 |
-
|
71 |
-
|
|
|
|
|
72 |
text = gr.Text(label="Query", visible=False)
|
73 |
label = gr.Text(label="Ground Truth")
|
74 |
ours = gr.Text(label="SViTT-Ego prediction")
|
75 |
-
|
76 |
-
|
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)
|