Update app.py
Browse files
app.py
CHANGED
|
@@ -11,12 +11,12 @@ def predict(img):
|
|
| 11 |
return dict(zip(labels, map(float, probs)))
|
| 12 |
|
| 13 |
title = 'Natural Landscape Classifier'
|
| 14 |
-
description = 'Click an example photo or upload 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='
|
| 20 |
show_label=True)
|
| 21 |
|
| 22 |
iface = gr.Interface(fn=predict,
|
|
|
|
| 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,
|