Update app.py
Browse files
app.py
CHANGED
|
@@ -223,7 +223,7 @@ def Visual_re_ranker(sentence_man, sentence_woman, context_label, context_prob):
|
|
| 223 |
|
| 224 |
|
| 225 |
#return {"彼 (man)": float(score_man * 100000000), "彼女 (woman)": float(score_woman)* 1000000000}
|
| 226 |
-
return {"彼 (man)": float(score_man
|
| 227 |
|
| 228 |
|
| 229 |
|
|
@@ -232,7 +232,7 @@ def Visual_re_ranker(sentence_man, sentence_woman, context_label, context_prob):
|
|
| 232 |
|
| 233 |
demo = gr.Interface(
|
| 234 |
fn=Visual_re_ranker,
|
| 235 |
-
description="Demo for Women Wearing Lipstick: Measuring the Bias Between Object and Its Related Gender",
|
| 236 |
inputs=[gr.Textbox(value="ハイデルベルク大学は彼の出身大学である。") , gr.Textbox(value="ハイデルベルク大学は彼女の出身大学である。"), gr.Textbox(value="大学"), gr.Textbox(value="0.7458009")],
|
| 237 |
# inputs=[gr.Textbox(value="これこれ!!なっちょのインスタ開設はこれがあるから尚幸せなのよ!") , gr.Textbox(value="インスタ開設"), gr.Textbox(value="大学"), gr.Textbox(value="0.5239")],
|
| 238 |
|
|
|
|
| 223 |
|
| 224 |
|
| 225 |
#return {"彼 (man)": float(score_man * 100000000), "彼女 (woman)": float(score_woman)* 1000000000}
|
| 226 |
+
return {"彼 (man)": float(score_man), "彼女 (woman)": float(score_woman)}
|
| 227 |
|
| 228 |
|
| 229 |
|
|
|
|
| 232 |
|
| 233 |
demo = gr.Interface(
|
| 234 |
fn=Visual_re_ranker,
|
| 235 |
+
description="Demo for Women Wearing Lipstick: Measuring the Bias Between Object and Its Related Gender (JP) ",
|
| 236 |
inputs=[gr.Textbox(value="ハイデルベルク大学は彼の出身大学である。") , gr.Textbox(value="ハイデルベルク大学は彼女の出身大学である。"), gr.Textbox(value="大学"), gr.Textbox(value="0.7458009")],
|
| 237 |
# inputs=[gr.Textbox(value="これこれ!!なっちょのインスタ開設はこれがあるから尚幸せなのよ!") , gr.Textbox(value="インスタ開設"), gr.Textbox(value="大学"), gr.Textbox(value="0.5239")],
|
| 238 |
|