DheivaCodes commited on
Commit
86a857b
·
verified ·
1 Parent(s): d801c67

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -468,8 +468,8 @@ def make_clinical_figure(pp,pred,sv,bp,inf,thr):
468
  b2=ax_bi.barh(sn,fv,color=fc_,height=0.52,alpha=0.88)
469
  for bar,val in zip(b2,fv):
470
  ax_bi.text(val+0.001,bar.get_y()+bar.get_height()/2,f"{val:.3f}",va="center",color=TC,fontsize=9)
471
- ax_bi.legend(handles=[mpatches.Patch(color="#10B981",label="↑ Increases risk"),
472
- mpatches.Patch(color="#EF4444",label="↓ Protective")],
473
  facecolor="#1A1A2E",edgecolor="#333355",labelcolor=TC,fontsize=8)
474
  else:
475
  ax_bi.text(0.5,0.5,"Enter FSH, LH, AMH,\nfollicle values",ha="center",va="center",
 
468
  b2=ax_bi.barh(sn,fv,color=fc_,height=0.52,alpha=0.88)
469
  for bar,val in zip(b2,fv):
470
  ax_bi.text(val+0.001,bar.get_y()+bar.get_height()/2,f"{val:.3f}",va="center",color=TC,fontsize=9)
471
+ ax_bi.legend(handles=[mpatches.Patch(color="#EF4444",label="↑ Increases risk"),
472
+ mpatches.Patch(color="#10B981",label="↓ Protective")],
473
  facecolor="#1A1A2E",edgecolor="#333355",labelcolor=TC,fontsize=8)
474
  else:
475
  ax_bi.text(0.5,0.5,"Enter FSH, LH, AMH,\nfollicle values",ha="center",va="center",