xichenhku commited on
Commit
a492b6a
1 Parent(s): 6f76dcb
Files changed (1) hide show
  1. app.py +2 -2
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", source="upload", tool="sketch", type="pil", height=512, brush_color='#FFFFFF', mask_opacity=0.5)
279
- ref = gr.Image(label="Reference", source="upload", 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():
 
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():