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

Updating app.py per Gradio tutorial v3

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -13,7 +13,7 @@ def predict(img):
13
 
14
  title = "Bear Breed Classifier"
15
  description = "A bear breed classifier trained on a custom dataset from DDG images with fastai. Created as a demo for Gradio and HuggingFace Spaces."
16
- interpretation='default'
17
  image = gr.Image(height=192, width=192)
18
  label = gr.Label()
19
  examples = ['black bear.jpg', 'grizzly bear.jpg']
@@ -21,7 +21,7 @@ examples = ['black bear.jpg', 'grizzly bear.jpg']
21
 
22
  enable_queue=True
23
 
24
- intf = gr.Interface(fn=predict, inputs=image, outputs=label, title=title, description=description,examples=examples,interpretation=interpretation,enable_queue=enable_queue)
25
  intf.launch(inline=False)
26
 
27
 
 
13
 
14
  title = "Bear Breed Classifier"
15
  description = "A bear breed classifier trained on a custom dataset from DDG images with fastai. Created as a demo for Gradio and HuggingFace Spaces."
16
+ #interpretation ='default'
17
  image = gr.Image(height=192, width=192)
18
  label = gr.Label()
19
  examples = ['black bear.jpg', 'grizzly bear.jpg']
 
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