Skip to content

Commit

Permalink
Persist models (#76)
Browse files Browse the repository at this point in the history
Co-authored-by: Weisu Yin <[email protected]>
  • Loading branch information
Weisu Yin and yinweisu authored May 15, 2023
1 parent 054878f commit 253a750
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def _save_image_and_update_dataframe_column(bytes):
def model_fn(model_dir):
"""loads model from previously saved artifact"""
model = TabularPredictor.load(model_dir)
model.persist_models()
globals()["column_names"] = model.feature_metadata_in.get_features()

return model
Expand Down

0 comments on commit 253a750

Please sign in to comment.