Skip to content

Commit

Permalink
Updaed pickle to dill (#3458)
Browse files Browse the repository at this point in the history
  • Loading branch information
axsaucedo authored Aug 10, 2021
1 parent e580c2a commit bbfa54f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/alibi-detect-server/adserver/cm_model.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import json
from typing import List, Dict, Optional, Union
import logging
import pickle
import dill
import os
from adserver.constants import (
REQUEST_ID_HEADER_NAME,
Expand Down Expand Up @@ -70,7 +70,7 @@ def load(self):
"""
if "/" in self.storage_uri:
model_folder = download_model(self.storage_uri)
self.model = pickle.load(
self.model = dill.load(
open(os.path.join(model_folder, "meta.pickle"), "rb")
)
else:
Expand Down
1 change: 1 addition & 0 deletions components/alibi-detect-server/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"google-cloud-storage==1.31.2",
"seldon_core",
"transformers>=4.0.0",
"dill==0.3.2",
],
tests_require=tests_require,
extras_require={"test": tests_require},
Expand Down

0 comments on commit bbfa54f

Please sign in to comment.