Chayanat commited on
Commit
e38108a
·
verified ·
1 Parent(s): bd343c6
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -611,14 +611,9 @@ def segment(input_img):
611
  if was_rotated:
612
  interpretation_parts.append(f"Image rotation corrected ({detected_rotation:.1f}°)")
613
 
614
- if ctr_result['correction_applied']:
615
- interpretation_parts.append(f"Anatomical tilt corrected ({tilt_angle:.1f}°)")
616
- elif tilt_angle > 3:
617
  interpretation_parts.append(f"Residual tilt detected ({tilt_angle:.1f}°)")
618
 
619
- # Add confidence indicator
620
- interpretation_parts.append(f"Confidence: {ctr_result['confidence']}")
621
-
622
  final_interpretation = " | ".join(interpretation_parts)
623
 
624
  return outseg, "tmp/overlap_segmentation.png", ctr_value, final_interpretation
 
611
  if was_rotated:
612
  interpretation_parts.append(f"Image rotation corrected ({detected_rotation:.1f}°)")
613
 
614
+ if tilt_angle > 3 and not ctr_result['correction_applied']:
 
 
615
  interpretation_parts.append(f"Residual tilt detected ({tilt_angle:.1f}°)")
616
 
 
 
 
617
  final_interpretation = " | ".join(interpretation_parts)
618
 
619
  return outseg, "tmp/overlap_segmentation.png", ctr_value, final_interpretation