Spaces:
Build error
Build error
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
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])
|