Spaces:
Runtime error
Runtime error
Commit
·
ee61524
1
Parent(s):
e5a5c19
Application2.4
Browse files
app.py
CHANGED
@@ -2,6 +2,11 @@ from fastai.vision.all import *
|
|
2 |
import gradio.components as gr
|
3 |
import gradio
|
4 |
|
|
|
|
|
|
|
|
|
|
|
5 |
model = load_learner('model.pkl')
|
6 |
|
7 |
categories = ("Egyptian Mau", "Persian Cat", "Sphynx Cat")
|
|
|
2 |
import gradio.components as gr
|
3 |
import gradio
|
4 |
|
5 |
+
|
6 |
+
import pathlib
|
7 |
+
plt = platform.system()
|
8 |
+
if plt == 'Windows': pathlib.PosixPath = pathlib.WindowsPath
|
9 |
+
|
10 |
model = load_learner('model.pkl')
|
11 |
|
12 |
categories = ("Egyptian Mau", "Persian Cat", "Sphynx Cat")
|