Run smoretalk/rembg-cpu using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"smoretalk/rembg-cpu:1ff3f13642d832b46c987f328eac0047ad2536c30d2c26820cf35619f27a0e95",
input={}
)
# To access the file URL:print(output[0].url())
#=> "http://example.com"# To write the file to disk:withopen("my-image.png", "wb") as file:
file.write(output[0].read())