-
Notifications
You must be signed in to change notification settings - Fork 129
Add python example #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if the input image is a webp / png ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it doesn't matter. I've tryed with png and it work (ligne 53). It seems that neither the API or the services cares
|
Kudos, SonarCloud Quality Gate passed!
|








No description provided.