Update app.py
Browse files
app.py
CHANGED
|
@@ -96,9 +96,9 @@ 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.Gallery(label="Ego-VPA prediction", columns=[
|
| 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=[2], rows=[1], object_fit="contain", height="auto")
|
| 100 |
#ours = gr.Textbox(label="Ego-VPA prediction")
|
| 101 |
+
ours = gr.Gallery(label="Ego-VPA prediction", columns=[2], rows=[1], object_fit="contain", height="auto")
|
| 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])
|