Spaces:
Sleeping
Sleeping
fix examples links
Browse files
app.py
CHANGED
|
@@ -23,12 +23,12 @@ def classify_image(img):
|
|
| 23 |
return {categories[i]: float(probs[i]) for i in range(len(categories))}
|
| 24 |
|
| 25 |
# %% load.ipynb 7
|
| 26 |
-
|
| 27 |
|
| 28 |
intf = gr.Interface(fn=classify_image,
|
| 29 |
inputs=gr.Image(),
|
| 30 |
outputs=gr.Label(),
|
| 31 |
-
|
| 32 |
title="Cat vs Dog Classifier",
|
| 33 |
description="Upload an image of a cat or a dog, and the model will predict which it is.")
|
| 34 |
intf.launch(share=True, inline=False)
|
|
|
|
| 23 |
return {categories[i]: float(probs[i]) for i in range(len(categories))}
|
| 24 |
|
| 25 |
# %% load.ipynb 7
|
| 26 |
+
examples = ['examples/cat.jpg', 'examples/dog.jpeg', 'examples/catdog.png']
|
| 27 |
|
| 28 |
intf = gr.Interface(fn=classify_image,
|
| 29 |
inputs=gr.Image(),
|
| 30 |
outputs=gr.Label(),
|
| 31 |
+
examples=examples,
|
| 32 |
title="Cat vs Dog Classifier",
|
| 33 |
description="Upload an image of a cat or a dog, and the model will predict which it is.")
|
| 34 |
intf.launch(share=True, inline=False)
|