KathrynMercer commited on
Commit
76266cd
·
verified ·
1 Parent(s): dee136d

formatting

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ labels = learn.dls.vocab
12
  def predict(img):
13
  img = PILImage.create(img)
14
  pred,pred_idx,probs = learn.predict(img)
15
- return {labels[i]: float(probs[i]) for i in range(len(labels))}
16
 
17
  gr.Interface(fn=predict,
18
  inputs='image',
 
12
  def predict(img):
13
  img = PILImage.create(img)
14
  pred,pred_idx,probs = learn.predict(img)
15
+ return {labels[i].title(): float(probs[i]) for i in range(len(labels))}
16
 
17
  gr.Interface(fn=predict,
18
  inputs='image',