Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,8 @@ def convert(file):
|
|
49 |
try:
|
50 |
obj = joblib.load(in_file)
|
51 |
except:
|
52 |
-
|
|
|
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])
|