Spaces:
Runtime error
Runtime error
Jonathon Cwik
commited on
Commit
•
921e7f0
1
Parent(s):
6935d5d
windows/linux path hack fix
Browse files
app.py
CHANGED
@@ -2,6 +2,9 @@ import gradio as gr
|
|
2 |
from nbconvert import export
|
3 |
import numpy as np
|
4 |
from fastai.vision.all import *
|
|
|
|
|
|
|
5 |
|
6 |
learner = load_learner("model.pkl")
|
7 |
categories = ('happy', 'upset')
|
|
|
2 |
from nbconvert import export
|
3 |
import numpy as np
|
4 |
from fastai.vision.all import *
|
5 |
+
import pathlib
|
6 |
+
plt = platform.system()
|
7 |
+
if plt == 'Linux': pathlib.WindowsPath = pathlib.PosixPath
|
8 |
|
9 |
learner = load_learner("model.pkl")
|
10 |
categories = ('happy', 'upset')
|