Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 = "#
|
| 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,
|