Spaces:
Sleeping
Sleeping
update pathlib
Browse files
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')
|