Jessica Walkenhorst commited on
Commit
5eaaa37
1 Parent(s): 206fd17

Add more examples

Browse files
Files changed (6) hide show
  1. .gitattributes +1 -0
  2. app.py +1 -1
  3. cygnet.jpg +3 -0
  4. sunflower.jpg +3 -0
  5. whiteclouds.jpg +3 -0
  6. yellowclouds.jpg +3 -0
.gitattributes CHANGED
@@ -7,6 +7,7 @@
7
  *.gz filter=lfs diff=lfs merge=lfs -text
8
  *.h5 filter=lfs diff=lfs merge=lfs -text
9
  *.joblib filter=lfs diff=lfs merge=lfs -text
 
10
  *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
  *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
  *.model filter=lfs diff=lfs merge=lfs -text
 
7
  *.gz filter=lfs diff=lfs merge=lfs -text
8
  *.h5 filter=lfs diff=lfs merge=lfs -text
9
  *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.jpg filter=lfs diff=lfs merge=lfs -text
11
  *.lfs.* filter=lfs diff=lfs merge=lfs -text
12
  *.mlmodel filter=lfs diff=lfs merge=lfs -text
13
  *.model filter=lfs diff=lfs merge=lfs -text
app.py CHANGED
@@ -14,7 +14,7 @@ def classify_image(image):
14
  title = 'Mirror, mirror on the wall am I a duckling or a cygnet after all?'
15
  description = """Hans Christian Andersen's tale of the ugly duckling tells us about the sad youth of a cygnet acidentally being brought up in a family of ducks and being ostrized for its ugliness.\n But what if the poor cygnet had a magic mirror to tell it that it was in fact a young swan after all? Machine learning to the rescue!"""
16
 
17
- examples = ['duckling.jpg']
18
 
19
  app = gr.Interface(fn=classify_image,
20
  inputs=gr.components.Image(),
 
14
  title = 'Mirror, mirror on the wall am I a duckling or a cygnet after all?'
15
  description = """Hans Christian Andersen's tale of the ugly duckling tells us about the sad youth of a cygnet acidentally being brought up in a family of ducks and being ostrized for its ugliness.\n But what if the poor cygnet had a magic mirror to tell it that it was in fact a young swan after all? Machine learning to the rescue!"""
16
 
17
+ examples = ['duckling.jpg', 'cygnet.jpg', 'sunflower.jpg', 'whiteclouds.jpg', 'yellowclouds.jpg']
18
 
19
  app = gr.Interface(fn=classify_image,
20
  inputs=gr.components.Image(),
cygnet.jpg ADDED

Git LFS Details

  • SHA256: 848da2d2184e22ffb73db4392387e0eab0a90e74811eb5b2b3e21749b9823c53
  • Pointer size: 130 Bytes
  • Size of remote file: 55.4 kB
sunflower.jpg ADDED

Git LFS Details

  • SHA256: 7ec45bfe341e2aa2c155035a404322b278873beca5570e8ea8480b09a42ca923
  • Pointer size: 130 Bytes
  • Size of remote file: 54 kB
whiteclouds.jpg ADDED

Git LFS Details

  • SHA256: e9e02289c0396b284e8da15c7e8c37c3e011746aa9daf5275804c52007fb7d8a
  • Pointer size: 130 Bytes
  • Size of remote file: 16.3 kB
yellowclouds.jpg ADDED

Git LFS Details

  • SHA256: 4c8133c935517673ecfe13c1d467ecc620f841e42870dac3d12b0e63e0572523
  • Pointer size: 130 Bytes
  • Size of remote file: 19.7 kB