Ayesha352 commited on
Commit
e46a7af
·
verified ·
1 Parent(s): fdf6a0b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -99,6 +99,19 @@ with gr.Blocks() as demo:
99
  with gr.Column():
100
  image_input = gr.Image(type="pil", label="Upload an image")
101
  submit_btn = gr.Button("Run Detection")
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  with gr.Column():
103
  plate_output = gr.Image(label="Combined Detection Output")
104
  vehicle_output = gr.Image(label="(Optional) Cropped Vehicle")
@@ -111,19 +124,6 @@ with gr.Blocks() as demo:
111
  outputs=[plate_output, vehicle_output, cropped_output, result_text]
112
  )
113
 
114
- gr.Examples(
115
- examples=[
116
- "examples/car5.jpg",
117
- "examples/car2.jpg",
118
- "examples/car3.jpg",
119
- "examples/car4.jpg",
120
- "examples/car6.jpg",
121
- "examples/car7.jpg",
122
- "examples/car8.jpg",
123
- ],
124
- inputs=[image_input],
125
- label="Example Images"
126
- )
127
 
128
  if __name__ == "__main__":
129
  demo.launch(share=True)
 
99
  with gr.Column():
100
  image_input = gr.Image(type="pil", label="Upload an image")
101
  submit_btn = gr.Button("Run Detection")
102
+ gr.Examples(
103
+ examples=[
104
+ "examples/car8.jpg",
105
+ "examples/car2.jpg",
106
+ "examples/car3.jpg",
107
+ "examples/car4.jpg",
108
+ "examples/car5.jpg",
109
+ "examples/car6.jpg",
110
+ "examples/car7.jpg",
111
+ ],
112
+ inputs=[image_input],
113
+ label="Example Images"
114
+ )
115
  with gr.Column():
116
  plate_output = gr.Image(label="Combined Detection Output")
117
  vehicle_output = gr.Image(label="(Optional) Cropped Vehicle")
 
124
  outputs=[plate_output, vehicle_output, cropped_output, result_text]
125
  )
126
 
 
 
 
 
 
 
 
 
 
 
 
 
 
127
 
128
  if __name__ == "__main__":
129
  demo.launch(share=True)