adarsh-007 commited on
Commit
c378e1e
·
verified ·
1 Parent(s): cd7fc61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -61,17 +61,17 @@ with gr.Blocks() as iface:
61
  with gr.Column():
62
  output_label = gr.Label(num_top_classes=3, label="Predictions")
63
 
64
- # gr.Examples(
65
- # examples=[
66
- # "/home/user/app/test_images/king_of_diamonds.jpg",
67
- # "/home/user/app/test_images/jack_of_spades.jpg",
68
- # "/home/user/app/test_images/ace_of_diamonds.jpg",
69
- # "/home/user/app/test_images/three_of_hearts.jpg",
70
- # "/home/user/app/test_images/ace_of_spades.jpg"
71
- # ],
72
- # inputs=input_image,
73
- # label="Try an example"
74
- # )
75
 
76
 
77
  submit_btn.click(fn=classify_image, inputs=input_image, outputs=output_label)
 
61
  with gr.Column():
62
  output_label = gr.Label(num_top_classes=3, label="Predictions")
63
 
64
+ gr.Examples(
65
+ examples=[
66
+ ["/home/user/app/test_images/king_of_diamonds.jpg"],
67
+ ["/home/user/app/test_images/jack_of_spades.jpg"],
68
+ ["/home/user/app/test_images/ace_of_diamonds.jpg"],
69
+ ["/home/user/app/test_images/three_of_hearts.jpg"],
70
+ ["/home/user/app/test_images/ace_of_spades.jpg"]
71
+ ],
72
+ inputs=input_image,
73
+ label="Try an example"
74
+ )
75
 
76
 
77
  submit_btn.click(fn=classify_image, inputs=input_image, outputs=output_label)