LPX
commited on
Commit
·
679e047
1
Parent(s):
d20c076
feat: add detailed logging for input types in inference data processing
Browse files- utils/hf_logger.py +8 -0
utils/hf_logger.py
CHANGED
@@ -85,6 +85,14 @@ def log_inference_data(
|
|
85 |
"human_feedback": human_feedback if human_feedback is not None else {}
|
86 |
}
|
87 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
# Append the new entry
|
89 |
# Note: Directly appending might not be efficient for large datasets or frequent logging
|
90 |
# For a production system, consider batched writes or more robust data pipelines.
|
|
|
85 |
"human_feedback": human_feedback if human_feedback is not None else {}
|
86 |
}
|
87 |
|
88 |
+
logger.info(f"Type of original_image_b64: {type(original_image_b64)}")
|
89 |
+
logger.info(f"Type of inference_params: {type(inference_params)}")
|
90 |
+
logger.info(f"Type of model_predictions: {type(model_predictions)}")
|
91 |
+
logger.info(f"Type of ensemble_output: {type(ensemble_output)}")
|
92 |
+
logger.info(f"Type of forensic_images_b64: {type(forensic_images_b64)}")
|
93 |
+
logger.info(f"Type of agent_monitoring_data: {type(agent_monitoring_data)}")
|
94 |
+
logger.info(f"Type of human_feedback: {type(human_feedback)}")
|
95 |
+
|
96 |
# Append the new entry
|
97 |
# Note: Directly appending might not be efficient for large datasets or frequent logging
|
98 |
# For a production system, consider batched writes or more robust data pipelines.
|