kellyshreeve commited on
Commit
30e53f9
·
verified ·
1 Parent(s): 3de827b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,13 +10,13 @@ def predict(img):
10
  category, idx, probs = neural_net.predict(img)
11
  return dict(zip(labels, map(float, probs)))
12
 
13
- title = 'Natural Landscape Classifier'
14
  description = 'Click an example photo or upload an image of your own!'
15
  examples = ['farm.jpg', 'lake.jpg', 'solar.jpg', 'neighborhood.jpg']
16
  inputs=gr.Image(type='pil',
17
  label='Photo')
18
  outputs = gr.Label(value={labels[i]: 0 for i in range(len(labels))},
19
- label='Your photo is a...',
20
  show_label=True)
21
 
22
  iface = gr.Interface(fn=predict,
 
10
  category, idx, probs = neural_net.predict(img)
11
  return dict(zip(labels, map(float, probs)))
12
 
13
+ title = 'Natural Landscape Photo Classifier'
14
  description = 'Click an example photo or upload an image of your own!'
15
  examples = ['farm.jpg', 'lake.jpg', 'solar.jpg', 'neighborhood.jpg']
16
  inputs=gr.Image(type='pil',
17
  label='Photo')
18
  outputs = gr.Label(value={labels[i]: 0 for i in range(len(labels))},
19
+ label='The photo is a...',
20
  show_label=True)
21
 
22
  iface = gr.Interface(fn=predict,