Spaces:
Runtime error
Runtime error
luisotorres
commited on
Commit
β’
98103aa
1
Parent(s):
54680e0
Update app.py
Browse files
app.py
CHANGED
@@ -39,6 +39,8 @@ def predict(input_image):
|
|
39 |
except Exception as e:
|
40 |
return str(e)
|
41 |
|
|
|
|
|
42 |
|
43 |
# Creating Gradio interface
|
44 |
iface = gr.Interface(
|
@@ -48,7 +50,8 @@ iface = gr.Interface(
|
|
48 |
title = 'π± x πΆ Image Recognition - Cats vs Dogs with Resnet 101 V2 π± x πΆ',
|
49 |
description="""<br> This model was trained to predict whether an image contains a cat or a dog. <br>
|
50 |
<br> You can see how this model was trained on the following <a href = "https://www.kaggle.com/lusfernandotorres/computer-vision-cats-vs-dogs-w-resnet-v2-101">Kaggle Notebook</a>.
|
51 |
-
<br>Upload a photo to see the how the model predicts!"""
|
|
|
52 |
)
|
53 |
|
54 |
iface.launch()
|
|
|
39 |
except Exception as e:
|
40 |
return str(e)
|
41 |
|
42 |
+
examples = [("dog.jpg",), ("cat.jpg",)]
|
43 |
+
|
44 |
|
45 |
# Creating Gradio interface
|
46 |
iface = gr.Interface(
|
|
|
50 |
title = 'π± x πΆ Image Recognition - Cats vs Dogs with Resnet 101 V2 π± x πΆ',
|
51 |
description="""<br> This model was trained to predict whether an image contains a cat or a dog. <br>
|
52 |
<br> You can see how this model was trained on the following <a href = "https://www.kaggle.com/lusfernandotorres/computer-vision-cats-vs-dogs-w-resnet-v2-101">Kaggle Notebook</a>.
|
53 |
+
<br>Upload a photo to see the how the model predicts!""",
|
54 |
+
examples = examples
|
55 |
)
|
56 |
|
57 |
iface.launch()
|