Spaces:
Build error
Build error
fixed windows path problem
Browse files
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):
|