Skip to content

Commit

Permalink
Merge pull request #39 from SubstrateLabs/chris/remove-bg-nit
Browse files Browse the repository at this point in the history
remove unused fg variable
  • Loading branch information
csreesan authored Jul 19, 2024
2 parents b0f3956 + 3da0e94 commit cca8fb1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/remove_bg.py → examples/remove_foreground.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cca8fb1

Please sign in to comment.