Spaces:
Build error
Build error
wip
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ categories = ['bmw car', 'mercedes car']
|
|
11 |
learn = load_learner("export.pkl")
|
12 |
|
13 |
def classify_image(img):
|
14 |
-
pred, _,
|
15 |
return dict(zip(categories, map(float, probs)))
|
16 |
|
17 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
|
|
11 |
learn = load_learner("export.pkl")
|
12 |
|
13 |
def classify_image(img):
|
14 |
+
pred, _, probs = learn.predict(img)
|
15 |
return dict(zip(categories, map(float, probs)))
|
16 |
|
17 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|