fix: Remove duplicate inference result logging to prevent terminal spam

- Comment out print() statements in InferencePipeline that duplicate GUI callback output
- Prevents each inference result from appearing multiple times in terminal
- Keeps logging system clean while maintaining GUI formatted display
- This was causing terminal output to show each result 2-3 times due to:
  1. InferencePipeline print() statements captured by StdoutCapture
  2. Same results formatted and sent via terminal_output callback

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Masonmason 2025-07-24 19:10:37 +08:00
parent 83906c87e3
commit 2ba0f4ae27

View File

@ -244,10 +244,12 @@ class PipelineStage:
# Handle tuple results like (probability, result_string)
prob, result_str = result
if prob is not None and result_str is not None:
print(f"[Stage {self.stage_id}] ✅ Inference result: prob={prob:.3f}, result={result_str}")
# Avoid duplicate logging - handled by GUI callback formatting
# print(f"[Stage {self.stage_id}] ✅ Inference result: prob={prob:.3f}, result={result_str}")
inference_result = result
elif isinstance(result, dict) and result: # Non-empty dict
print(f"[Stage {self.stage_id}] ✅ Dict result: {result}")
# Avoid duplicate logging - handled by GUI callback formatting
# print(f"[Stage {self.stage_id}] ✅ Dict result: {result}")
inference_result = result
else:
inference_result = result