Spaces:
Runtime error
Runtime error
kanthadya
commited on
Commit
•
6e4ec8c
1
Parent(s):
bf96ad7
app typo fixed
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ categories = ('frontal crash, rollover crash')
|
|
7 |
|
8 |
def classify_image(img):
|
9 |
pred,idx,probs = learn.predict(img)
|
10 |
-
return zip(categories,map(float,probs))
|
11 |
|
12 |
image = gr.inputs.Image(shape=(192,192))
|
13 |
label = gr.outputs.Label()
|
|
|
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()
|