zyx-hfut commited on
Commit
324d43c
·
1 Parent(s): c553a4a

update path logic

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -1,5 +1,13 @@
1
  # AUTOGENERATED! DO NOT EDIT! File to edit: 3.GardioTest.ipynb.
2
 
 
 
 
 
 
 
 
 
3
  # %% auto 0
4
  __all__ = ['learn', 'categories', 'image', 'label', 'examples', 'intf', 'is_cat', 'classify_image']
5
 
 
1
  # AUTOGENERATED! DO NOT EDIT! File to edit: 3.GardioTest.ipynb.
2
 
3
+
4
+ import platform
5
+ import pathlib
6
+ plt = platform.system()
7
+ if plt != 'Windows':
8
+ pathlib.WindowsPath = pathlib.PosixPath
9
+
10
+
11
  # %% auto 0
12
  __all__ = ['learn', 'categories', 'image', 'label', 'examples', 'intf', 'is_cat', 'classify_image']
13