OriLib commited on
Commit
4f75613
·
verified ·
1 Parent(s): 1afd42b

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ def process_image(image, num_steps=50, guidance_scale=5.0):
27
  return None, "Please upload an image"
28
 
29
  # Fixed instruction for background removal
30
- instruction = "{'edit_instruction':'Generate a detailed grayscale alpha matte. Map the opaque foreground to white and the background to black. Produce soft, anti-aliased grayscale gradients at the edges of the subject to represent fine details and transparency.'}"
31
 
32
  try:
33
  # Run the pipeline to get the grayscale alpha matte
 
27
  return None, "Please upload an image"
28
 
29
  # Fixed instruction for background removal
30
+ instruction = "\"{'edit_instruction':'Generate a detailed grayscale alpha matte. Map the opaque foreground to white and the background to black. Produce soft, anti-aliased grayscale gradients at the edges of the subject to represent fine details and transparency.'}\""
31
 
32
  try:
33
  # Run the pipeline to get the grayscale alpha matte