rajkhanke commited on
Commit
5a7b05d
·
verified ·
1 Parent(s): ccf347f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -347,7 +347,7 @@ def determine_patient_status(original_plan, updated_plan, feedback):
347
  # or context, even if the patient's feedback wasn't explicitly critical *using the exact keywords*.
348
  is_emergency_final_plan = check_keywords(updated_plan_lower, emergency_keywords)
349
 
350
- if is_emergency_initial or is_emergency_final_plan:
351
  logger.info("Status determined: EMERGENCY (keyword found in feedback/original or final plan).")
352
  return "emergency"
353
 
 
347
  # or context, even if the patient's feedback wasn't explicitly critical *using the exact keywords*.
348
  is_emergency_final_plan = check_keywords(updated_plan_lower, emergency_keywords)
349
 
350
+ if is_emergency_initial:
351
  logger.info("Status determined: EMERGENCY (keyword found in feedback/original or final plan).")
352
  return "emergency"
353