Update app.py
Browse files
app.py
CHANGED
@@ -132,7 +132,7 @@ with demo:
|
|
132 |
with gr.Row():
|
133 |
with gr.Column():
|
134 |
url_input = gr.Textbox(lines=2,label='Enter valid image URL here..')
|
135 |
-
original_image = gr.Image(shape=(
|
136 |
with gr.Column():
|
137 |
img_output_from_url = gr.Image(shape=(750,750))
|
138 |
|
@@ -143,7 +143,7 @@ with demo:
|
|
143 |
|
144 |
with gr.TabItem('Image Upload'):
|
145 |
with gr.Row():
|
146 |
-
img_input = gr.Image(type='pil',shape=(
|
147 |
img_output_from_upload= gr.Image(shape=(750,750))
|
148 |
|
149 |
with gr.Row():
|
@@ -155,7 +155,7 @@ with demo:
|
|
155 |
|
156 |
with gr.TabItem('WebCam'):
|
157 |
with gr.Row():
|
158 |
-
web_input = gr.Image(source='webcam',type='pil',shape=(
|
159 |
img_output_from_webcam= gr.Image(shape=(750,750))
|
160 |
|
161 |
cam_but = gr.Button('Detect')
|
|
|
132 |
with gr.Row():
|
133 |
with gr.Column():
|
134 |
url_input = gr.Textbox(lines=2,label='Enter valid image URL here..')
|
135 |
+
original_image = gr.Image(shape=(550,550))
|
136 |
with gr.Column():
|
137 |
img_output_from_url = gr.Image(shape=(750,750))
|
138 |
|
|
|
143 |
|
144 |
with gr.TabItem('Image Upload'):
|
145 |
with gr.Row():
|
146 |
+
img_input = gr.Image(type='pil',shape=(550,550))
|
147 |
img_output_from_upload= gr.Image(shape=(750,750))
|
148 |
|
149 |
with gr.Row():
|
|
|
155 |
|
156 |
with gr.TabItem('WebCam'):
|
157 |
with gr.Row():
|
158 |
+
web_input = gr.Image(source='webcam',type='pil',shape=(550,550),streaming=True)
|
159 |
img_output_from_webcam= gr.Image(shape=(750,750))
|
160 |
|
161 |
cam_but = gr.Button('Detect')
|