Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from skops import io as sio
|
|
5 |
|
6 |
def convert(file):
|
7 |
print(file)
|
8 |
-
obj = joblib.load(file)
|
9 |
_, fname = tempfile.mkstemp(prefix=file + ".skops")
|
10 |
sio.dump(obj, fname)
|
11 |
return fname
|
|
|
5 |
|
6 |
def convert(file):
|
7 |
print(file)
|
8 |
+
obj = joblib.load(file.name)
|
9 |
_, fname = tempfile.mkstemp(prefix=file + ".skops")
|
10 |
sio.dump(obj, fname)
|
11 |
return fname
|