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