Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -13,10 +13,11 @@ def predict(img):
|
|
13 |
title = 'NYC Iconic Buildings Classifier'
|
14 |
description = 'This is a classifier based on fastai course, lesson 2.'
|
15 |
interpretation = 'default'
|
|
|
16 |
enable_queue = True
|
17 |
|
18 |
gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(512, 512)),
|
19 |
outputs=gr.outputs.Label(num_top_classes=3), title=title,
|
20 |
description=description,
|
21 |
-
examples
|
22 |
interpretation=interpretation, enable_queue=enable_queue).launch()
|
|
|
13 |
title = 'NYC Iconic Buildings Classifier'
|
14 |
description = 'This is a classifier based on fastai course, lesson 2.'
|
15 |
interpretation = 'default'
|
16 |
+
examples = ['empire_state_building.jpg', 'flatiron_building.jpg', 'chrysler_building.jpg']
|
17 |
enable_queue = True
|
18 |
|
19 |
gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(512, 512)),
|
20 |
outputs=gr.outputs.Label(num_top_classes=3), title=title,
|
21 |
description=description,
|
22 |
+
examples=examples,
|
23 |
interpretation=interpretation, enable_queue=enable_queue).launch()
|