fix: loading issue when the model is not loaded first time
Description
The model loading screen shows incorrect progress during the initial load. In some cases, the progress bar reaches 100% before the model is fully initialized, causing the UI to appear stuck even though the model is still loading in the background.
Expected Behavior
- Loading percentage should accurately reflect the real model loading state.
- Progress should reach
100%only after the model is fully initialized and ready to use. - The loader should close automatically once initialization completes.
Current Behavior
- Progress reaches
100%too early during first-time model loading. - Model initialization continues after the UI indicates completion.
- Loader gets stuck or creates confusion for users.
Fix Required
- Synchronize progress updates with actual model download and initialization events.
- Ensure accurate real-time loading percentage calculation.
- Prevent premature completion state before the model is ready.