Ensure framework is initialized before fetching the state
This commit is contained in:
parent
a460b6ced2
commit
0b2b5689db
1 changed files with 3 additions and 0 deletions
|
@ -151,6 +151,9 @@ class SemanticSearchService {
|
|||
}
|
||||
|
||||
InitializationState getFrameworkInitializationState() {
|
||||
if (!_hasInitialized) {
|
||||
return InitializationState.notInitialized;
|
||||
}
|
||||
return _mlFramework.initializationState;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue