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