Update app.py
Browse files
app.py
CHANGED
@@ -96,9 +96,10 @@ def main():
|
|
96 |
with gr.Column():
|
97 |
idx = gr.Number(label="Idx", visible=False)
|
98 |
#zeroshot = gr.Textbox(label="LaViLa (zero-shot) prediction")
|
99 |
-
#zeroshot = gr.Gallery(label="LaViLa (zero-shot) prediction", columns=[
|
100 |
#ours = gr.Textbox(label="Ego-VPA prediction")
|
101 |
-
ours = gr.
|
|
|
102 |
btn = gr.Button("Predict", variant="primary")
|
103 |
btn.click(predict_t2v, inputs=[idx], outputs=[ours])
|
104 |
gr.Examples(examples=[[i, x] for i, x in enumerate(t2v_samples)], inputs=[idx, text])
|
|
|
96 |
with gr.Column():
|
97 |
idx = gr.Number(label="Idx", visible=False)
|
98 |
#zeroshot = gr.Textbox(label="LaViLa (zero-shot) prediction")
|
99 |
+
#zeroshot = gr.Gallery(label="LaViLa (zero-shot) prediction", columns=[3], rows=[1], object_fit="contain", height="auto")
|
100 |
#ours = gr.Textbox(label="Ego-VPA prediction")
|
101 |
+
ours = gr.Image(label="Ego-VPA prediction")
|
102 |
+
#ours = gr.Gallery(label="Ego-VPA prediction", columns=[3], rows=[1], object_fit="contain", height="auto")
|
103 |
btn = gr.Button("Predict", variant="primary")
|
104 |
btn.click(predict_t2v, inputs=[idx], outputs=[ours])
|
105 |
gr.Examples(examples=[[i, x] for i, x in enumerate(t2v_samples)], inputs=[idx, text])
|