Sarvamangalak commited on
Commit
79d8647
·
verified ·
1 Parent(s): bd90e82

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -164,10 +164,10 @@ with demo:
164
  with gr.Row():
165
  with gr.Column():
166
  url_input = gr.Textbox(lines=2,label='Enter valid image URL here..')
167
- original_image = gr.Image(shape=(750,750))
168
  url_input.change(get_original_image, url_input, original_image)
169
  with gr.Column():
170
- img_output_from_url = gr.Image(shape=(750,750))
171
 
172
  with gr.Row():
173
  example_url = gr.Examples(examples=urls,inputs=[url_input])
@@ -177,8 +177,8 @@ with demo:
177
 
178
  with gr.TabItem('Image Upload'):
179
  with gr.Row():
180
- img_input = gr.Image(type='pil',shape=(750,750))
181
- img_output_from_upload= gr.Image(shape=(750,750))
182
 
183
  with gr.Row():
184
  example_images = gr.Examples(examples=images,inputs=[img_input])
@@ -188,8 +188,8 @@ with demo:
188
 
189
  with gr.TabItem('WebCam'):
190
  with gr.Row():
191
- web_input = gr.Image(source='webcam',type='pil',shape=(750,750),streaming=True)
192
- img_output_from_webcam= gr.Image(shape=(750,750))
193
 
194
  cam_but = gr.Button('Detect')
195
 
 
164
  with gr.Row():
165
  with gr.Column():
166
  url_input = gr.Textbox(lines=2,label='Enter valid image URL here..')
167
+ original_image = gr.Image(height=750, width=750)
168
  url_input.change(get_original_image, url_input, original_image)
169
  with gr.Column():
170
+ img_output_from_url = gr.Image(height=750, width=750)
171
 
172
  with gr.Row():
173
  example_url = gr.Examples(examples=urls,inputs=[url_input])
 
177
 
178
  with gr.TabItem('Image Upload'):
179
  with gr.Row():
180
+ img_input = gr.Image(type='pil',height=750, width=750)
181
+ img_output_from_upload= gr.Image(height=750, width=750)
182
 
183
  with gr.Row():
184
  example_images = gr.Examples(examples=images,inputs=[img_input])
 
188
 
189
  with gr.TabItem('WebCam'):
190
  with gr.Row():
191
+ web_input = gr.Image(source='webcam',type='pil',height=750, width=750,streaming=True)
192
+ img_output_from_webcam= gr.Image(height=750, width=750)
193
 
194
  cam_but = gr.Button('Detect')
195