Ryu-m0m commited on
Commit
705cef1
1 Parent(s): f29298a

update pathlib

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -16,6 +16,8 @@ with inference:
16
  plt = platform.system()
17
  if plt == 'Linux':
18
  pathlib.WindowsPath = pathlib.PosixPath
 
 
19
 
20
  path = Path()
21
  path.ls(file_exts='.pkl')
 
16
  plt = platform.system()
17
  if plt == 'Linux':
18
  pathlib.WindowsPath = pathlib.PosixPath
19
+ if plt == 'Windows':
20
+ pathlib.PosixPath = pathlib.WindowsPath
21
 
22
  path = Path()
23
  path.ls(file_exts='.pkl')