AhmedSSabir commited on
Commit
efc5423
1 Parent(s): 0aa8ed6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -146,8 +146,6 @@ def cos_sim(a, b):
146
  # return {"Man": float(score_man)/1, "Woman": float(score_woman)/1}
147
  #return LM, sim, score
148
 
149
-
150
-
151
  def Visual_re_ranker(caption_man, caption_woman, context_label, context_prob):
152
  caption_man = caption_man
153
  caption_woman = caption_woman
@@ -173,8 +171,6 @@ def Visual_re_ranker(caption_man, caption_woman, context_label, context_prob):
173
  score_woman = pow(float(LM_woman),pow((1-float(sim_w))/(1+ float(sim_w)),1-float(context_prob)))
174
 
175
 
176
-
177
-
178
  #return {"LM": float(LM)/1, "sim": float(sim)/1, "score": float(score)/1 }
179
  return {"Man": float(score_man)/1, "Woman": float(score_woman)/1}
180
  #return LM, sim, score
 
146
  # return {"Man": float(score_man)/1, "Woman": float(score_woman)/1}
147
  #return LM, sim, score
148
 
 
 
149
  def Visual_re_ranker(caption_man, caption_woman, context_label, context_prob):
150
  caption_man = caption_man
151
  caption_woman = caption_woman
 
171
  score_woman = pow(float(LM_woman),pow((1-float(sim_w))/(1+ float(sim_w)),1-float(context_prob)))
172
 
173
 
 
 
174
  #return {"LM": float(LM)/1, "sim": float(sim)/1, "score": float(score)/1 }
175
  return {"Man": float(score_man)/1, "Woman": float(score_woman)/1}
176
  #return LM, sim, score