toobarah commited on
Commit
95fd352
1 Parent(s): 059596b

fastai library added

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ categories = ('dog', 'cat')
11
 
12
  def classify_image(img):
13
  pred,idx,probs = learn.predict(img)
14
- return dict(zip(categories, map(float, probs)))
15
 
16
  image = gr.inputs.Image(shape=(256,256))
17
  label = gr.outputs.Label()
 
11
 
12
  def classify_image(img):
13
  pred,idx,probs = learn.predict(img)
14
+ return dict(zip(categories, map(float, probs)))
15
 
16
  image = gr.inputs.Image(shape=(256,256))
17
  label = gr.outputs.Label()