cls00 commited on
Commit
3f356a4
·
verified ·
1 Parent(s): 9fa0d31

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -6,6 +6,10 @@ __all__ = ['learn', 'categories', 'im_size', 'examples', 'intf', 'classify_image
6
  #importing
7
  from fastai.vision.all import *
8
  import gradio as gr
 
 
 
 
9
 
10
  # %% ../app.ipynb 4
11
  learn = load_learner('ft_resnet18_10epochs.pkl')
 
6
  #importing
7
  from fastai.vision.all import *
8
  import gradio as gr
9
+ import pathlib
10
+ plt = platform.system()
11
+ if plt == 'Windows': pathlib.WindowsPath = pathlib.PosixPath
12
+
13
 
14
  # %% ../app.ipynb 4
15
  learn = load_learner('ft_resnet18_10epochs.pkl')