Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,13 +38,13 @@ with gr.Blocks(title="ViT LCZ Classification - ClassCat",
|
|
| 38 |
input_image = gr.Image(type="pil")
|
| 39 |
output_label=gr.Label(label="Probabilities", num_top_classes=3)
|
| 40 |
|
| 41 |
-
send_btn = gr.Button("
|
| 42 |
send_btn.click(fn=classify_image, inputs=input_image, outputs=output_label)
|
| 43 |
|
| 44 |
with gr.Row():
|
| 45 |
-
gr.Examples(['data/closed_highrise.png'], label='
|
| 46 |
-
gr.Examples(['data/open_lowrise.png'], label='
|
| 47 |
-
gr.Examples(['data/dense_trees.png'], label='
|
| 48 |
-
gr.Examples(['data/large_lowrise.png'], label='
|
| 49 |
|
| 50 |
-
demo.launch(debug=True)
|
|
|
|
| 38 |
input_image = gr.Image(type="pil")
|
| 39 |
output_label=gr.Label(label="Probabilities", num_top_classes=3)
|
| 40 |
|
| 41 |
+
send_btn = gr.Button("Classify")
|
| 42 |
send_btn.click(fn=classify_image, inputs=input_image, outputs=output_label)
|
| 43 |
|
| 44 |
with gr.Row():
|
| 45 |
+
gr.Examples(['data/closed_highrise.png'], label='Closed highrise', inputs=input_image)
|
| 46 |
+
gr.Examples(['data/open_lowrise.png'], label='Sparsey built', inputs=input_image)
|
| 47 |
+
gr.Examples(['data/dense_trees.png'], label='Dense trees', inputs=input_image)
|
| 48 |
+
gr.Examples(['data/large_lowrise.png'], label='Large lowrise', inputs=input_image)
|
| 49 |
|
| 50 |
+
demo.launch(debug=True, cache_examples=True)
|