whywynn commited on
Commit
deffedf
1 Parent(s): 598d7e0

Updating app.py per Gradio tutorial v4

Browse files
app.py CHANGED
@@ -16,12 +16,12 @@ description = "A bear breed classifier trained on a custom dataset from DDG imag
16
  #interpretation ='default'
17
  image = gr.Image(height=192, width=192)
18
  label = gr.Label()
19
- examples = ['black bear.jpg', 'grizzly bear.jpg']
20
 
21
 
22
- enable_queue=True
23
 
24
- intf = gr.Interface(fn=predict, inputs=image, outputs=label, title=title, description=description,examples=examples,enable_queue=enable_queue)
25
  intf.launch(inline=False)
26
 
27
 
 
16
  #interpretation ='default'
17
  image = gr.Image(height=192, width=192)
18
  label = gr.Label()
19
+ examples = ['black bear.jpg', 'grizzly bear.jpg', 'teddy bear.jpg']
20
 
21
 
22
+ #enable_queue=True
23
 
24
+ intf = gr.Interface(fn=predict, inputs=image, outputs=label, title=title, description=description,examples=examples)
25
  intf.launch(inline=False)
26
 
27
 
black bear - test.jfif ADDED
Binary file (11.1 kB). View file
 
grizzly bear - test.jfif ADDED
Binary file (10.3 kB). View file
 
teddy bear - test.jfif ADDED
Binary file (6.1 kB). View file
 
teddy bear.jfif ADDED
Binary file (8.86 kB). View file