Commit
·
a571a7b
1
Parent(s):
e844435
Update app.py
Browse files
app.py
CHANGED
|
@@ -136,10 +136,10 @@ def Visual_re_ranker(caption_man, caption_woman, context_label, context_prob):
|
|
| 136 |
demo = gr.Interface(
|
| 137 |
fn=Visual_re_ranker,
|
| 138 |
description="Demo for Women Wearing Lipstick: Measuring the Bias Between Object and Its Related Gender",
|
| 139 |
-
inputs=[gr.Textbox(value="a man riding a motorcycle on a road") , gr.Textbox(value="a woman riding a motorcycle on a road"), gr.Textbox(value="motor scooter"), gr.Textbox(value="0.2183")],
|
| 140 |
-
|
| 141 |
|
| 142 |
-
|
| 143 |
outputs="label",
|
| 144 |
)
|
| 145 |
demo.launch()
|
|
|
|
| 136 |
demo = gr.Interface(
|
| 137 |
fn=Visual_re_ranker,
|
| 138 |
description="Demo for Women Wearing Lipstick: Measuring the Bias Between Object and Its Related Gender",
|
| 139 |
+
# inputs=[gr.Textbox(value="a man riding a motorcycle on a road") , gr.Textbox(value="a woman riding a motorcycle on a road"), gr.Textbox(value="motor scooter"), gr.Textbox(value="0.2183")],
|
| 140 |
+
inputs=[gr.Textbox(value="a man playing a video game in a living room") , gr.Textbox(value=" a woman playing a video game in a living room"), gr.Textbox(value="joystick"), gr.Textbox(value="0.2732")],
|
| 141 |
|
| 142 |
+
|
| 143 |
outputs="label",
|
| 144 |
)
|
| 145 |
demo.launch()
|