Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -203,7 +203,8 @@ human_ex_list = [{"background": ex_human, "layers": None, "composite": None} for
|
|
203 |
with gr.Blocks() as image_blocks:
|
204 |
with gr.Column():
|
205 |
with gr.Row():
|
206 |
-
imgs = gr.Image(source='upload', type="pil", label='Person Image')
|
|
|
207 |
is_checked = gr.Checkbox(label="Check if mask needed")
|
208 |
is_checked_crop = gr.Checkbox(label="Check to crop")
|
209 |
ex_img = gr.Examples(inputs=imgs, examples_per_page=9, examples=human_ex_list)
|
|
|
203 |
with gr.Blocks() as image_blocks:
|
204 |
with gr.Column():
|
205 |
with gr.Row():
|
206 |
+
# imgs = gr.Image(source='upload', type="pil", label='Person Image')
|
207 |
+
imgs = gr.Image(type="pil", label='Person Image') # Remove the 'source' argument
|
208 |
is_checked = gr.Checkbox(label="Check if mask needed")
|
209 |
is_checked_crop = gr.Checkbox(label="Check to crop")
|
210 |
ex_img = gr.Examples(inputs=imgs, examples_per_page=9, examples=human_ex_list)
|