NLTuan commited on
Commit
25bf568
·
1 Parent(s): 93b2417
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -7,8 +7,6 @@ def greet(name):
7
  def is_cat(x):
8
  return x[0].isupper()
9
 
10
- im = PILImage.create("dog.jpg")
11
- im.thumbnail((192,192))
12
  learner = load_learner("model.pkl")
13
 
14
  categories = ("Dog", "Cat")
@@ -22,6 +20,5 @@ print(classify_image(im))
22
 
23
  image = gr.input.Image(shape = (192, 192))
24
  label = gr.outputs.Label()
25
- examples = ["dog.jpg", "cat.jpg", "dogcat.jpg"]
26
  iface = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples =examples)
27
  iface.launch()
 
7
  def is_cat(x):
8
  return x[0].isupper()
9
 
 
 
10
  learner = load_learner("model.pkl")
11
 
12
  categories = ("Dog", "Cat")
 
20
 
21
  image = gr.input.Image(shape = (192, 192))
22
  label = gr.outputs.Label()
 
23
  iface = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples =examples)
24
  iface.launch()