Spaces:
Runtime error
Runtime error
KamrusSamad
commited on
Commit
•
e80e252
1
Parent(s):
5adcee7
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ model = load_learner('obj-recognizer-v2.pkl')
|
|
23 |
|
24 |
def recognize_image(image):
|
25 |
pred, idx, probs = model.predict(image)
|
26 |
-
return
|
27 |
|
28 |
image = gr.inputs.Image(shape=(192,192))
|
29 |
label = gr.outputs.Label(num_top_classes=5)
|
|
|
23 |
|
24 |
def recognize_image(image):
|
25 |
pred, idx, probs = model.predict(image)
|
26 |
+
return pred
|
27 |
|
28 |
image = gr.inputs.Image(shape=(192,192))
|
29 |
label = gr.outputs.Label(num_top_classes=5)
|