adrin commited on
Commit
aa38de2
1 Parent(s): 6f37b8e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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