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