Atsatoru commited on
Commit
2f1d8b4
·
verified ·
1 Parent(s): bee25d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1264,8 +1264,9 @@ HÃY TRẢ LỜI NGƯỜI DÂNG:"""
1264
  if len(final_response) < 50:
1265
  # Dùng smart response builder thay vì prompt mặc định
1266
  final_response = build_smart_response(query, situation, docs, intents, proc_info)
1267
- final_response = final_response.replace("Persons", "trật tự xã hội")
1268
- final_response = final_response.replace("persons", "trật tự xã hội")
 
1269
 
1270
  # Fallback cuối cùng
1271
  if len(final_response) < 30:
 
1264
  if len(final_response) < 50:
1265
  # Dùng smart response builder thay vì prompt mặc định
1266
  final_response = build_smart_response(query, situation, docs, intents, proc_info)
1267
+ if "persons" in final_response.lower():
1268
+ final_response = final_response.replace("Persons", "hành chính về trật tự xã hội")
1269
+ final_response = final_response.replace("persons", "hành chính về trật tự xã hội")
1270
 
1271
  # Fallback cuối cùng
1272
  if len(final_response) < 30: