adrin commited on
Commit
97a5779
·
1 Parent(s): ae84962

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -45,7 +45,10 @@ def convert(file):
45
  try:
46
  with warnings.catch_warnings(record=True) as record:
47
  in_file = Path(file.name)
48
- obj = joblib.load(in_file)
 
 
 
49
 
50
  if "." in in_file.name:
51
  out_file = ".".join(in_file.name.split(".")[:-1])
 
45
  try:
46
  with warnings.catch_warnings(record=True) as record:
47
  in_file = Path(file.name)
48
+ try:
49
+ obj = joblib.load(in_file)
50
+ except:
51
+ obj = pickle.load(in_file)
52
 
53
  if "." in in_file.name:
54
  out_file = ".".join(in_file.name.split(".")[:-1])