Fix broken inference pools part2
This commit is contained in:
@@ -42,13 +42,14 @@ def create_static_model_set(download_scope : DownloadScope) -> ModelSet:
|
||||
|
||||
|
||||
def get_inference_pool() -> InferencePool:
|
||||
model_names = [ 'yolo_nsfw' ]
|
||||
model_sources = get_model_options().get('sources')
|
||||
return inference_manager.get_inference_pool(__name__, model_sources)
|
||||
return inference_manager.get_inference_pool(__name__, model_names, model_sources)
|
||||
|
||||
|
||||
def clear_inference_pool() -> None:
|
||||
model_sources = get_model_options().get('sources')
|
||||
inference_manager.clear_inference_pool(__name__, model_sources)
|
||||
model_names = [ 'yolo_nsfw' ]
|
||||
inference_manager.clear_inference_pool(__name__, model_names)
|
||||
|
||||
|
||||
def get_model_options() -> ModelOptions:
|
||||
|
||||
Reference in New Issue
Block a user