diff --git a/examples/remove_bg.py b/examples/remove_foreground.py similarity index 87% rename from examples/remove_bg.py rename to examples/remove_foreground.py index cc1c61a..bad529f 100755 --- a/examples/remove_bg.py +++ b/examples/remove_foreground.py @@ -15,8 +15,7 @@ substrate = Substrate(api_key=api_key, timeout=60 * 5) prompt = "by edward hopper, a red leather wing chair in an open room, pillars, amazing painting composition" -image = GenerateImage(prompt=prompt, negative_prompt="photo realistic") -fg = RemoveBackground(image_uri=image.future.image_uri) +image = GenerateImage(prompt=prompt) mask = RemoveBackground( image_uri=image.future.image_uri, return_mask=True,