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