Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ categories = ('ACA', 'Benign', 'SCC')
|
|
8 |
|
9 |
def classify_image(img):
|
10 |
pred,idx,probs = learn.predict(img)
|
11 |
-
return categories
|
12 |
|
13 |
image = gr.components.Image(shape=(768, 768))
|
14 |
label = gr.components.Label()
|
|
|
8 |
|
9 |
def classify_image(img):
|
10 |
pred,idx,probs = learn.predict(img)
|
11 |
+
return dict(zip(categories, map(float,probs)))
|
12 |
|
13 |
image = gr.components.Image(shape=(768, 768))
|
14 |
label = gr.components.Label()
|