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