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