gina9726 commited on
Commit
a74ea5d
·
verified ·
1 Parent(s): d32d7bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -98,8 +98,7 @@ def main():
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])
 
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.Gallery(label="Ego-VPA prediction", columns=[1], 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])