fix
This commit is contained in:
@@ -47,6 +47,8 @@ def validate_worker_document():
|
|||||||
|
|
||||||
# Validate the worker's response using the provided document
|
# Validate the worker's response using the provided document
|
||||||
validation_result = chatbot.validate_worker(question, docs)
|
validation_result = chatbot.validate_worker(question, docs)
|
||||||
|
|
||||||
|
print(validation_result)
|
||||||
|
|
||||||
if not validation_result:
|
if not validation_result:
|
||||||
return jsonify({"error": "Validation failed", "message": "Validation process failed."}), 400
|
return jsonify({"error": "Validation failed", "message": "Validation process failed."}), 400
|
||||||
|
|||||||
Reference in New Issue
Block a user