adrin commited on
Commit
da07405
1 Parent(s): 07c1f9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -49,7 +49,8 @@ def convert(file):
49
  try:
50
  obj = joblib.load(in_file)
51
  except:
52
- obj = pickle.load(in_file)
 
53
 
54
  if "." in in_file.name:
55
  out_file = ".".join(in_file.name.split(".")[:-1])
 
49
  try:
50
  obj = joblib.load(in_file)
51
  except:
52
+ with open(in_file, "rb") as f:
53
+ obj = pickle.load(f)
54
 
55
  if "." in in_file.name:
56
  out_file = ".".join(in_file.name.split(".")[:-1])