Spaces:
Sleeping
Sleeping
Added posix.path to fix pathing issue between linus & windows-based systems
Browse files
app.py
CHANGED
|
@@ -2,6 +2,10 @@ import gradio as gr
|
|
| 2 |
from fastai.vision.all import *
|
| 3 |
from huggingface_hub import from_pretrained_fastai
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
learn = from_pretrained_fastai(repo_id = "KathrynMercer/CatPatternClassifier")
|
| 6 |
|
| 7 |
labels = learn.dls.vocab
|
|
|
|
| 2 |
from fastai.vision.all import *
|
| 3 |
from huggingface_hub import from_pretrained_fastai
|
| 4 |
|
| 5 |
+
import pathlib
|
| 6 |
+
plt = platform.system()
|
| 7 |
+
if plt == 'Linux': pathlib.WindowsPath = pathlib.PosixPath
|
| 8 |
+
|
| 9 |
learn = from_pretrained_fastai(repo_id = "KathrynMercer/CatPatternClassifier")
|
| 10 |
|
| 11 |
labels = learn.dls.vocab
|