luisotorres commited on
Commit
98103aa
β€’
1 Parent(s): 54680e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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()