M. Saad Munawar
commited on
Commit
•
2eb2274
1
Parent(s):
48133ea
https://huggingface.co/spaces/Saad123/minimal
Browse files
app.py
CHANGED
@@ -16,9 +16,9 @@ def model(image):
|
|
16 |
dog_pred = 1-pred
|
17 |
pred_label = np.argmax(pred)
|
18 |
if (pred_label == 0):
|
19 |
-
return f"The Image is of a Dog
|
20 |
if (pred_label == 1):
|
21 |
-
return "The Image is of a Cat
|
22 |
|
23 |
image = gr.inputs.Image(shape=(224,224))
|
24 |
background='body{background-image:url("https://d2gg9evh47fn9z.cloudfront.net/800px_COLOURBOX35440124.jpg");}'
|
|
|
16 |
dog_pred = 1-pred
|
17 |
pred_label = np.argmax(pred)
|
18 |
if (pred_label == 0):
|
19 |
+
return f"The Image is of a Dog."
|
20 |
if (pred_label == 1):
|
21 |
+
return "The Image is of a Cat."
|
22 |
|
23 |
image = gr.inputs.Image(shape=(224,224))
|
24 |
background='body{background-image:url("https://d2gg9evh47fn9z.cloudfront.net/800px_COLOURBOX35440124.jpg");}'
|