Update app.py
Browse files
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='
|
| 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,
|