James_Byers commited on
Commit
2866971
·
1 Parent(s): 4a3bd29

fixed typo

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