Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,7 @@
|
|
1 |
from fastai.vision.all import *
|
2 |
import gradio as gr
|
3 |
learn = load_learner('export.pkl')
|
4 |
-
import pathlib
|
5 |
-
temp = pathlib.PosixPath
|
6 |
-
pathlib.PosixPath = pathlib.WindowsPath
|
7 |
-
|
8 |
actors = learn.dls.vocab
|
9 |
def classify_images(img):
|
10 |
pred, idx, prob = learn.predict(img)
|
|
|
1 |
from fastai.vision.all import *
|
2 |
import gradio as gr
|
3 |
learn = load_learner('export.pkl')
|
4 |
+
import platform import pathlib plt = platform.system() if plt == 'Linux': pathlib.WindowsPath = pathlib.PosixPath
|
|
|
|
|
|
|
5 |
actors = learn.dls.vocab
|
6 |
def classify_images(img):
|
7 |
pred, idx, prob = learn.predict(img)
|