gina9726 commited on
Commit
d598fd0
·
verified ·
1 Parent(s): eaa7d9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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=[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])
 
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])