fatsam commited on
Commit
29e4c72
·
1 Parent(s): bc1b86c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -117,11 +117,11 @@ def identify_dog_app(img):
117
 
118
  breed = InceptionV3_prediction_breed(img)
119
  if dog_detector(img):
120
- return(breed)
121
  elif face_detector(img):
122
- return (breed)
123
  else:
124
- return("I have no idea what this might be. Please upload another image!")
125
 
126
 
127
 
@@ -132,7 +132,7 @@ label = gr.outputs.Label(num_top_classes=1)
132
  iface = gr.Interface(
133
  fn=identify_dog_app,
134
  inputs=image,
135
- outputs=gr.outputs.Label(label="Human or Dog?"),
136
  title="Human or dog Identification - Breed Classification",
137
  #description ="Please find the jypyter notebook on ___",
138
  article =
 
117
 
118
  breed = InceptionV3_prediction_breed(img)
119
  if dog_detector(img):
120
+ return("This looks like a dog and its breed is:"),"{}".format(breed)
121
  elif face_detector(img):
122
+ return("This looks like a human but might be classified as a dog of the following breed:"),"{}".format(breed)
123
  else:
124
+ return("I have no idea what this might be. Please upload another image!"), ("Not applicable")
125
 
126
 
127
 
 
132
  iface = gr.Interface(
133
  fn=identify_dog_app,
134
  inputs=image,
135
+ outputs=[gr.outputs.Label(label="Human or Dog?"), gr.outputs.Label(label="Breed:")],
136
  title="Human or dog Identification - Breed Classification",
137
  #description ="Please find the jypyter notebook on ___",
138
  article =