hlydecker commited on
Commit
a833d2a
·
verified ·
1 Parent(s): ac06398

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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("Infer")
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='Sample images : cat', inputs=input_image)
46
- gr.Examples(['data/open_lowrise.png'], label='cheetah', inputs=input_image)
47
- gr.Examples(['data/dense_trees.png'], label='hotdog', inputs=input_image)
48
- gr.Examples(['data/large_lowrise.png'], label='lion', inputs=input_image)
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)