Himgos commited on
Commit
57d681f
1 Parent(s): 5949fdf
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -3,7 +3,7 @@
3
  from pathlib import *
4
  import platform
5
  plt = platform.system()
6
- if plt == 'Windows': pathlib.WindowsPath = pathlib.PosixPath
7
 
8
  # %% auto 0
9
  __all__ = ['learn', 'categories', 'image', 'label', 'examples', 'intf', 'classify_image']
@@ -29,3 +29,4 @@ examples = ['chillypotato.jpg', 'friedrice.jpg', 'momos.jpg']
29
 
30
  intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
31
  intf.launch(inline=False)
 
 
3
  from pathlib import *
4
  import platform
5
  plt = platform.system()
6
+ if plt == 'Linux': pathlib.WindowsPath = pathlib.PosixPath
7
 
8
  # %% auto 0
9
  __all__ = ['learn', 'categories', 'image', 'label', 'examples', 'intf', 'classify_image']
 
29
 
30
  intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
31
  intf.launch(inline=False)
32
+