mqadir commited on
Commit
5e3e7ba
·
verified ·
1 Parent(s): c963751

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -119,7 +119,7 @@ def calculate_risk_and_format(mask_path, no_chemo, pd_surgery):
119
 
120
  # 5. Format Outputs
121
  risk_percentage = prob_r1
122
- risk_color = "#9C6464" if risk_percentage > 50 else "#8FAADC"
123
  risk_display = f"<h2 style='color: {risk_color}; margin-top: 0;'>Predicted probability of R+ resection: {risk_percentage:.2f}</h2>"
124
 
125
  # Notice we still display the RAW un-normalized values to the user in the UI,
 
119
 
120
  # 5. Format Outputs
121
  risk_percentage = prob_r1
122
+ risk_color = "#C55A11" if risk_percentage > 0.5 else "#B89036"
123
  risk_display = f"<h2 style='color: {risk_color}; margin-top: 0;'>Predicted probability of R+ resection: {risk_percentage:.2f}</h2>"
124
 
125
  # Notice we still display the RAW un-normalized values to the user in the UI,