Spaces:
Runtime error
Runtime error
source
Browse files
app.py
CHANGED
@@ -275,8 +275,8 @@ with gr.Blocks() as demo:
|
|
275 |
gr.Markdown("### Your could draw coarse masks on the background to indicate the desired location and shape.")
|
276 |
gr.Markdown("### <u>Do not forget</u> to annotate the target object on the reference image.")
|
277 |
with gr.Row():
|
278 |
-
base = gr.Image(label="Background",
|
279 |
-
ref = gr.Image(label="Reference",
|
280 |
run_local_button = gr.Button(label="Generate", value="Run")
|
281 |
|
282 |
with gr.Row():
|
|
|
275 |
gr.Markdown("### Your could draw coarse masks on the background to indicate the desired location and shape.")
|
276 |
gr.Markdown("### <u>Do not forget</u> to annotate the target object on the reference image.")
|
277 |
with gr.Row():
|
278 |
+
base = gr.Image(label="Background", tool="sketch", type="pil", height=512, brush_color='#FFFFFF', mask_opacity=0.5)
|
279 |
+
ref = gr.Image(label="Reference", tool="sketch", type="pil", height=512, brush_color='#FFFFFF', mask_opacity=0.5)
|
280 |
run_local_button = gr.Button(label="Generate", value="Run")
|
281 |
|
282 |
with gr.Row():
|