LPX55 commited on
Commit
854eed8
·
verified ·
1 Parent(s): 1281e73

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -411,6 +411,7 @@ title = """<h1 align="center">Diffusers Image Outpaint</h1>
411
  </p>
412
  </div>
413
  """
 
414
 
415
  with gr.Blocks(css=css, fill_height=True) as demo:
416
  gr.Markdown("# Diffusers Inpaint and Outpaint")
@@ -588,7 +589,8 @@ with gr.Blocks(css=css, fill_height=True) as demo:
588
  # show_progress=True,
589
  # )
590
  with gr.Tab("SAM2.1 Segmented Mask"):
591
- temp_space = gr.load("LPX55/SAM2-Image-Predictor-CPU", src="spaces", token=HF_TOKEN)
 
592
  # Define the action triggered by the upload_image_input change
593
  # upload_image_input.change(
594
  # fn=update_mask,
 
411
  </p>
412
  </div>
413
  """
414
+ sam_block = gr.load(name="spaces/LPX55/SAM2-Image-Predictor-CPU")
415
 
416
  with gr.Blocks(css=css, fill_height=True) as demo:
417
  gr.Markdown("# Diffusers Inpaint and Outpaint")
 
589
  # show_progress=True,
590
  # )
591
  with gr.Tab("SAM2.1 Segmented Mask"):
592
+ with gr.Blocks():
593
+ masking_tool = sam_block
594
  # Define the action triggered by the upload_image_input change
595
  # upload_image_input.change(
596
  # fn=update_mask,