Uh oh!
There was an error while loading. Please reload this page.
Add python example - #8
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
jblanche
left a comment
There was a problem hiding this comment.
Should we have a cleanup example too ?
| """call the API to remove the background""" | ||
| output_format = os.path.splitext(output_file)[1].lower() | ||
| img_in = open(input_file, 'rb') | ||
| files = {'image_file': ('image.jpeg', img_in, 'image/jpeg')} |
There was a problem hiding this comment.
What if the input image is a webp / png ?
There was a problem hiding this comment.
it doesn't matter. I've tryed with png and it work (ligne 53). It seems that neither the API or the services cares
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Kudos, SonarCloud Quality Gate passed!
|








No description provided.