Spaces:
Sleeping
Sleeping
Commit
·
d167708
1
Parent(s):
741557b
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
from fastai.vision.all import *
|
|
|
3 |
|
|
|
|
|
4 |
|
5 |
learn = load_learner('nihal_model.pkl')
|
6 |
def classify_image(img):
|
|
|
1 |
import gradio as gr
|
2 |
from fastai.vision.all import *
|
3 |
+
import pathlib
|
4 |
|
5 |
+
plt = platform.system()
|
6 |
+
if plt == 'Linux': pathlib.WindowsPath = pathlib.PosixPath
|
7 |
|
8 |
learn = load_learner('nihal_model.pkl')
|
9 |
def classify_image(img):
|