Hritik commited on
Commit
a606624
1 Parent(s): 0ba1d16

update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -68,9 +68,11 @@ def inference(videopath, text):
68
  return score, nle
69
 
70
  demo = gr.Interface(inference,
71
- title="Owl-Con Demo (ode: https://github.com/Hritikbansal/videocon | Paper: https://arxiv.org/abs/2311.10111)",
 
72
  inputs=[gr.Video(label='input_video'), gr.Textbox(label='input_caption')],
73
- outputs=[gr.Number(label='Entailemnt Score'), gr.Textbox(label='Natural Language Explanation')])
 
74
 
75
  if __name__ == "__main__":
76
  demo.launch()
 
68
  return score, nle
69
 
70
  demo = gr.Interface(inference,
71
+ description="Owl-Con Demo",
72
+ title="Owl-Con Demo (Code: https://github.com/Hritikbansal/videocon | Paper: https://arxiv.org/abs/2311.10111)",
73
  inputs=[gr.Video(label='input_video'), gr.Textbox(label='input_caption')],
74
+ outputs=[gr.Number(label='Entailemnt Score'), gr.Textbox(label='Natural Language Explanation')],
75
+ examples=[["examples/820.mp4", "We see the group making cookies."], ["examples/820.mp4", "We see the group eating cookies."], ["examples/244.mp4", "She throws a bowling ball while talking on the phone."], ["examples/244.mp4", "She throws a baseball while talking on the phone."]])
76
 
77
  if __name__ == "__main__":
78
  demo.launch()