Spaces:
Sleeping
Sleeping
Stephen137
commited on
Commit
•
c6e2e3d
1
Parent(s):
b9390b5
Update app.py
Browse files
app.py
CHANGED
@@ -6,8 +6,8 @@ learn = load_learner("export.pkl")
|
|
6 |
categories = ("grizzly", "black", "teddy")
|
7 |
|
8 |
def classify_image(img):
|
9 |
-
pred,idx,probs = learn.predict(img)
|
10 |
-
return dict(zip(categories, map(float,probs)))
|
11 |
|
12 |
image = gr.inputs.Image(shape=(192,192))
|
13 |
label = gr.outputs.Label()
|
|
|
6 |
categories = ("grizzly", "black", "teddy")
|
7 |
|
8 |
def classify_image(img):
|
9 |
+
pred,idx,probs = learn.predict(img)
|
10 |
+
return dict(zip(categories, map(float,probs)))
|
11 |
|
12 |
image = gr.inputs.Image(shape=(192,192))
|
13 |
label = gr.outputs.Label()
|