Daniel K.Gunleiksrud
commited on
Commit
•
c02d05a
1
Parent(s):
8b97c32
plz work
Browse files
app.py
CHANGED
@@ -1,6 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
from fastai.vision.all import *
|
3 |
|
|
|
|
|
|
|
|
|
4 |
learn = load_learner('model.pkl')
|
5 |
|
6 |
categories = ('Flower','Sunflower')
|
|
|
1 |
import gradio as gr
|
2 |
from fastai.vision.all import *
|
3 |
|
4 |
+
import pathlib
|
5 |
+
plt = platform.system()
|
6 |
+
if plt == 'Linux': pathlib.WindowsPath = pathlib.PosixPath
|
7 |
+
|
8 |
learn = load_learner('model.pkl')
|
9 |
|
10 |
categories = ('Flower','Sunflower')
|