Commit
·
1b5a696
1
Parent(s):
b45245b
Update app.py
Browse files
app.py
CHANGED
@@ -130,8 +130,8 @@ def Visual_re_ranker(caption, visual_context_label, visual_context_prob):
|
|
130 |
demo = gr.Interface(
|
131 |
fn=Visual_re_ranker,
|
132 |
description="Demo for Belief Revision based Caption Re-ranker with Visual Semantic Information",
|
133 |
-
inputs=[gr.Textbox(value="a city street filled with traffic at night") , gr.Textbox(value="traffic"), gr.Textbox(value="0.7458009")],
|
134 |
-
|
135 |
outputs="label",
|
136 |
)
|
137 |
demo.launch()
|
|
|
130 |
demo = gr.Interface(
|
131 |
fn=Visual_re_ranker,
|
132 |
description="Demo for Belief Revision based Caption Re-ranker with Visual Semantic Information",
|
133 |
+
#inputs=[gr.Textbox(value="a city street filled with traffic at night") , gr.Textbox(value="traffic"), gr.Textbox(value="0.7458009")],
|
134 |
+
outputs=[gr.Textbox(value="Language Model Score") , gr.Textbox(value="Semantic Similarity Score"), gr.Textbox(value="Belief revision score via visual context")],
|
135 |
outputs="label",
|
136 |
)
|
137 |
demo.launch()
|