Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -12,11 +12,11 @@ def predict(img):
|
|
12 |
|
13 |
title = 'NYC Iconic Buildings Classifier'
|
14 |
description = 'This is a classifier based on fastai course, lesson 2.'
|
15 |
-
examples = []
|
16 |
interpretation = 'default'
|
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 |
interpretation=interpretation, enable_queue=enable_queue).launch()
|
|
|
12 |
|
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 = ['./examples/empire_state_building.jpg', './examples/flatiron_building.jpg', './chrysler_building.jpg'],
|
22 |
interpretation=interpretation, enable_queue=enable_queue).launch()
|