Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,12 @@ from fastai.vision.all import *
|
|
2 |
import gradio as gr
|
3 |
from pathlib import Path
|
4 |
import pathlib
|
|
|
|
|
|
|
|
|
5 |
categories = ('Man', 'Woman')
|
6 |
-
learner = load_learner('export.
|
7 |
|
8 |
|
9 |
def classify_img(img):
|
|
|
2 |
import gradio as gr
|
3 |
from pathlib import Path
|
4 |
import pathlib
|
5 |
+
|
6 |
+
plt = platform.system()
|
7 |
+
if plt == 'Linux': pathlib.WindowsPath = pathlib.PosixPath
|
8 |
+
|
9 |
categories = ('Man', 'Woman')
|
10 |
+
learner = load_learner('export.pkl')
|
11 |
|
12 |
|
13 |
def classify_img(img):
|