elampt commited on
Commit
1cd8f8f
·
1 Parent(s): 8297a06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -4,6 +4,10 @@ __all__ = ['learn','classify_image','categories','image','label','examples','int
4
  from fastai.vision.all import *
5
  import gradio as gr
6
 
 
 
 
 
7
  learn = load_learner('model.pkl')
8
 
9
 
 
4
  from fastai.vision.all import *
5
  import gradio as gr
6
 
7
+ import pathlib
8
+ plt = platform.system()
9
+ if plt == 'Linux': pathlib.WindowsPath = pathlib.PosixPath
10
+
11
  learn = load_learner('model.pkl')
12
 
13