Spaces:
Running on Zero
Running on Zero
Upload folder using huggingface_hub
Browse files
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
|