pka007 commited on
Commit
358176d
·
verified ·
1 Parent(s): b84cc6d

fixed windows path problem

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,8 +1,10 @@
1
  import gradio as gr
2
  from fastai.vision.all import *
3
  from huggingface_hub import from_pretrained_fastai
 
4
 
5
  # loading the model
 
6
  learn = from_pretrained_fastai("pka007/flowerclassifier_model")
7
  labels = learn.dls.vocab
8
  def predict(img):
 
1
  import gradio as gr
2
  from fastai.vision.all import *
3
  from huggingface_hub import from_pretrained_fastai
4
+ import pathlib
5
 
6
  # loading the model
7
+ pathlib.WindowsPath = pathlib.PosixPath
8
  learn = from_pretrained_fastai("pka007/flowerclassifier_model")
9
  labels = learn.dls.vocab
10
  def predict(img):