Spaces:
Sleeping
Sleeping
Updating app.py per Gradio tutorial v3
Browse files
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,
|
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 |
|