Train the model on colab and use it in local

Is it possible to train my model and colab and create streamlit application on local PC!?

Yes…train the model, store it as pickle file and then use it (import) for inference - create streamlit application on local pc…


Thanks a lot!, since I am a beginner, can you share some examples!

@seanbenhur49 Store your pickle file (*.pkl) in a directory where you place streamlit python file…
#open, load and use it like below…its just an example…
import pickle

pickle_file = open(".pkl",“rb”)
m = pickle.load(pickle_file)

1 Like

Thanks a lot for the explanation!!