ltomczak1 commited on
Commit
7f09935
1 Parent(s): c812851

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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()