AhmedSSabir commited on
Commit
68ad585
·
1 Parent(s): 1fa2bd1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -150,13 +150,15 @@ def Visual_re_ranker(caption_G, caption_B, caption_VR, visual_context_label, vis
150
 
151
 
152
 
 
153
 
154
  demo = gr.Interface(
155
  fn=Visual_re_ranker,
156
  description="Demo for Belief Revision based Caption Re-ranker with Visual Semantic Information",
157
  #inputs=[gr.Textbox(value="a city street filled with traffic at night") , gr.Textbox(value="traffic"), gr.Textbox(value="0.7458009")],
158
- inputs=[gr.Textbox(value="a fruit market with apple and orange") , gr.Textbox(value="a fruit stand with apple and orange"), gr.Textbox(value="a display of apples and oranges at a market"), gr.Textbox(value="orange lemon apple"), gr.Textbox(value="0.4095494")],
159
  #outputs=[gr.Textbox(value="Language Model Score") , gr.Textbox(value="Semantic Similarity Score"), gr.Textbox(value="Belief revision score via visual context")],
160
  outputs="label",
161
  )
 
162
  demo.launch()
 
150
 
151
 
152
 
153
+
154
 
155
  demo = gr.Interface(
156
  fn=Visual_re_ranker,
157
  description="Demo for Belief Revision based Caption Re-ranker with Visual Semantic Information",
158
  #inputs=[gr.Textbox(value="a city street filled with traffic at night") , gr.Textbox(value="traffic"), gr.Textbox(value="0.7458009")],
159
+ inputs=[gr.Textbox(value="a baby sitting in front of a giant cake") , gr.Textbox(value="a baby sitting in front of a cake"), gr.Textbox(value="a baby sitting in front of a birthday cake"), gr.Textbox(value="candle taper wax light"), gr.Textbox(value="0.958")],
160
  #outputs=[gr.Textbox(value="Language Model Score") , gr.Textbox(value="Semantic Similarity Score"), gr.Textbox(value="Belief revision score via visual context")],
161
  outputs="label",
162
  )
163
+
164
  demo.launch()