We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45e43ea commit 6962fc0Copy full SHA for 6962fc0
pytrickle/frame_processor.py
@@ -67,7 +67,7 @@ def attach_state(self, state: StreamState) -> None:
67
async def ensure_model_loaded(self, **kwargs):
68
"""Thread-safe wrapper that ensures model is loaded exactly once."""
69
async with self._model_load_lock:
70
- if not self.state.get_state() == PipelineState.LOADING:
+ if not self.state.get_state() == PipelineState.IDLE:
71
await self.load_model(**kwargs)
72
self.state.set_startup_complete()
73
logger.debug(f"Model loaded for {self.__class__.__name__}")
0 commit comments