update
Browse files
app.ipynb
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
app.py
CHANGED
@@ -1,9 +1,19 @@
|
|
1 |
from fastai.vision.all import *
|
2 |
import gradio as gr
|
3 |
|
|
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
-
model = load_learner('./models/tradiotional_clothing_recognition-v1.pkl')
|
7 |
|
8 |
categories = model.dls.vocab
|
9 |
|
|
|
1 |
from fastai.vision.all import *
|
2 |
import gradio as gr
|
3 |
|
4 |
+
from pathlib import Path
|
5 |
|
6 |
+
# file_path = 'tradiotional_clothing_recognition-v1.pkl'
|
7 |
+
# model = load_learner(str(file_path))
|
8 |
+
|
9 |
+
|
10 |
+
# model = load_learner('tradiotional_clothing_recognition-v1.pkl')
|
11 |
+
|
12 |
+
import os
|
13 |
+
|
14 |
+
file_path = os.path.join('tradiotional_clothing_recognition-v1.pkl')
|
15 |
+
model = load_learner(file_path)
|
16 |
|
|
|
17 |
|
18 |
categories = model.dls.vocab
|
19 |
|
models/tradiotional_clothing_recognition-v1.pkl β tradiotional_clothing_recognition-v1.pkl
RENAMED
File without changes
|