Noe831 commited on
Commit
864f69a
·
1 Parent(s): 72261d4
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -14,4 +14,15 @@ examples = ['grizzly.jpg']
14
 
15
  demo = gr.Interface(classify_image, gr.Image(), gr.Label())
16
  if __name__ == "__main__":
17
- demo.launch()
 
 
 
 
 
 
 
 
 
 
 
 
14
 
15
  demo = gr.Interface(classify_image, gr.Image(), gr.Label())
16
  if __name__ == "__main__":
17
+ demo.launch()
18
+
19
+ interface = gr.Interface(
20
+ fn=classify_image,
21
+ inputs=gr.Image(height=512, width=512),
22
+ outputs=gr.Label(num_top_classes=3),
23
+ title="Bear Classifier",
24
+ description="Upload a photo of a bear.",
25
+ article="This classifier can distinguish between black, grizzly, and teddy bears.",
26
+ examples=['grizzly.jpg']
27
+ )
28
+ interface.launch(share=True)