prospector/ranking/utils/model_loader.py
def load_model(model_name: str):
    """
    Serves for loading existing pre-trained modules from disk. Takes string model name as an input (the name of the
    saved model - can be with or without file extension) and returns the loaded model.
    If the requested model is not found, the function returns "Model not found" exception.
    """
    model_path = get_model_path(model_name)

    if not os.path.exists(model_path):
        raise Exception("Model {} not found".format(model_name))

    return load(model_path)

    Serves for loading existing pre-trained modules from disk. Takes string model name as an input (the name of the
    saved model - can be with or without file extension) and returns the loaded model.
    If the requested model is not found, the function returns "Model not found" exception.
    
Serves for loading existing pre-trained modules from disk. Takes string model name as an input (the name of the
saved model - can be with or without file extension) and returns the loaded model.
If the requested model is not found, the function returns "Model not found" exception.
Serves for loading existing pre - trained modules from disk . Takes string model name as an input ( the name of the saved model - can be with or without file extension ) and returns the loaded model . If the requested model is not found the function returns " Model not found " exception .
def load_model(model_name: str):
    model_path = get_model_path(model_name)
    if not os.path.exists(model_path):
        raise Exception("Model {} not found".format(model_name))
    return load(model_path)
def load_model ( model_name : str ) : model_path = get_model_path ( model_name ) if not os . path . exists ( model_path ) : raise Exception ( "Model {} not found" . format ( model_name ) ) return load ( model_path )
Serves for loading existing pre-trained modules from disk.
Serves for loading existing pre - trained modules from disk .
"""
    Serves for loading existing pre-trained modules from disk. Takes string model name as an input (the name of the
    saved model - can be with or without file extension) and returns the loaded model.
    If the requested model is not found, the function returns "Model not found" exception.
    """
model_name
str