Functions to load Learner and images

To be used in Streamlit app

get_learner[source]

get_learner(model_path:Union[Path, str])

get_image[source]

get_image(img:Union[Path, str])

Get picture from either a path or URL

We also need a dummy function to make it easier to load a model when we don't know the implementation of some functions previously defined (like labelling function)

dummy_function[source]

dummy_function(*args, **kwargs)

Function that does absolutely nothing

Note: we should try to see if just setting the missing pieces to None would work.

That would make it easier