karancl commited on
Commit
33bf34c
·
1 Parent(s): fbdf837

fixed the app.py file

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -13,9 +13,6 @@ import gradio as gr
13
  def is_cat(x):
14
  return x[0].isupper()
15
 
16
- im = PILImage.create('dog.webp')
17
- im.thumbnail((192,192))
18
- im
19
 
20
  #|export
21
  learn = load_learner('model (1).pkl')
@@ -29,7 +26,7 @@ def classify_image(img):
29
  pred,idx,probs = learn.predict(img)
30
  return dict(zip(categories, map(float,probs)))
31
 
32
- classify_image(im)
33
 
34
  #|export
35
  image = gr.Image()
 
13
  def is_cat(x):
14
  return x[0].isupper()
15
 
 
 
 
16
 
17
  #|export
18
  learn = load_learner('model (1).pkl')
 
26
  pred,idx,probs = learn.predict(img)
27
  return dict(zip(categories, map(float,probs)))
28
 
29
+
30
 
31
  #|export
32
  image = gr.Image()