tejasnavada commited on
Commit
0ebf6e8
1 Parent(s): 3b49b8d

fix windowsPath

Browse files
Files changed (2) hide show
  1. app.py +5 -0
  2. requirements.txt +2 -1
app.py CHANGED
@@ -1,5 +1,10 @@
1
  from fastai.vision.all import *
2
  import gradio as gr
 
 
 
 
 
3
 
4
 
5
  learn = load_learner('number_100.pkl')
 
1
  from fastai.vision.all import *
2
  import gradio as gr
3
+ import pathlib
4
+
5
+
6
+ plt = platform.system()
7
+ if plt == 'Windows': pathlib.WindowsPath = pathlib.PosixPath
8
 
9
 
10
  learn = load_learner('number_100.pkl')
requirements.txt CHANGED
@@ -1,2 +1,3 @@
1
  fastai
2
- torch==1.12.1
 
 
1
  fastai
2
+ torch==1.12.1
3
+ pathlib