Sarvamangalak commited on
Commit
873b765
·
verified ·
1 Parent(s): 9917a7b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -271,19 +271,19 @@ with demo:
271
  url_input = gr.Textbox(lines=2, label='Enter valid image URL here..')
272
  original_image = gr.Image(height=750, width=750)
273
  url_input.change(get_original_image, url_input, original_image)
274
- img_output_from_url = gr.Image(shape=(750, 750))
275
  url_but = gr.Button('Detect')
276
 
277
  with gr.TabItem('Image Upload'):
278
  with gr.Row():
279
- img_input = gr.Image(type='pil', shape=(750, 750))
280
- img_output_from_upload = gr.Image(shape=(750, 750))
281
  img_but = gr.Button('Detect')
282
 
283
  with gr.TabItem('WebCam'):
284
  with gr.Row():
285
- web_input = gr.Image(source='webcam', type='pil', shape=(750, 750), streaming=True)
286
- img_output_from_webcam = gr.Image(shape=(750, 750))
287
  cam_but = gr.Button('Detect')
288
 
289
  with gr.TabItem('Video Upload'):
 
271
  url_input = gr.Textbox(lines=2, label='Enter valid image URL here..')
272
  original_image = gr.Image(height=750, width=750)
273
  url_input.change(get_original_image, url_input, original_image)
274
+ img_output_from_url = gr.Image(height=750, width=750)
275
  url_but = gr.Button('Detect')
276
 
277
  with gr.TabItem('Image Upload'):
278
  with gr.Row():
279
+ img_input = gr.Image(type='pil', height=750, width=750)
280
+ img_output_from_upload = gr.Image(height=750, width=750)
281
  img_but = gr.Button('Detect')
282
 
283
  with gr.TabItem('WebCam'):
284
  with gr.Row():
285
+ web_input = gr.Image(source='webcam', type='pil', height=750, width=750, streaming=True)
286
+ img_output_from_webcam = gr.Image(height=750, width=750)
287
  cam_but = gr.Button('Detect')
288
 
289
  with gr.TabItem('Video Upload'):