Update app.py
Browse files
app.py
CHANGED
@@ -14,9 +14,9 @@ def predict(img):
|
|
14 |
|
15 |
# Check if the prediction is "Cat" and return the appropriate string
|
16 |
if pred == 'Cat':
|
17 |
-
return "
|
18 |
else:
|
19 |
-
return "
|
20 |
|
21 |
title = "Is this image of a cat?"
|
22 |
iface = gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(512,512)), outputs=gr.outputs.Label(num_top_classes=2), title=title)
|
|
|
14 |
|
15 |
# Check if the prediction is "Cat" and return the appropriate string
|
16 |
if pred == 'Cat':
|
17 |
+
return "Yes, this is a cat"
|
18 |
else:
|
19 |
+
return "No, this is not a cat"
|
20 |
|
21 |
title = "Is this image of a cat?"
|
22 |
iface = gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(512,512)), outputs=gr.outputs.Label(num_top_classes=2), title=title)
|