From 23d8c4ff618747da7603c2e73ec9651255867808 Mon Sep 17 00:00:00 2001 From: Masonmason Date: Thu, 24 Jul 2025 12:11:44 +0800 Subject: [PATCH] fix: Replace undefined 'processed_result' with 'inference_result' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed NameError where 'processed_result' was referenced but not defined. Should use 'inference_result' which contains the actual inference output from MultiDongle.get_latest_inference_result(). 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- cluster4npu_ui/core/functions/InferencePipeline.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cluster4npu_ui/core/functions/InferencePipeline.py b/cluster4npu_ui/core/functions/InferencePipeline.py index f6bbd4d..63fec81 100644 --- a/cluster4npu_ui/core/functions/InferencePipeline.py +++ b/cluster4npu_ui/core/functions/InferencePipeline.py @@ -257,8 +257,8 @@ class PipelineStage: inference_result = {'probability': 0.0, 'result': 'Processing', 'status': 'async'} # Step 4: Update pipeline data - pipeline_data.stage_results[self.stage_id] = processed_result - pipeline_data.data = processed_result # Pass result as data to next stage + pipeline_data.stage_results[self.stage_id] = inference_result + pipeline_data.data = inference_result # Pass result as data to next stage pipeline_data.metadata[f'{self.stage_id}_timestamp'] = time.time() return pipeline_data