Skip to content
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

Support for paint endpoint #115

Closed
wants to merge 4 commits into from
Closed

Support for paint endpoint #115

wants to merge 4 commits into from

Conversation

CoderHam
Copy link

@CoderHam CoderHam commented Oct 29, 2022

Sample client

import cohere
import os
import base64

API_KEY = os.getenv('COHERE_API_KEY')
cohere.COHERE_API_URL = "https://dev.api.cohere.ai/"
co = cohere.Client(API_KEY)

# x = co.whisper(file_paths=<INSERT_FILE_PATH>)
x = co.image(<INSERT_PROMPT>)
with open("image.png", "wb") as f:
    f.write(base64.b64decode(x.image))

@CoderHam CoderHam marked this pull request as draft October 29, 2022 05:23
@robertkozin
Copy link
Contributor

Looks good so far, you can request my review when you're done and I'll approve it

@CoderHam CoderHam changed the title Support for image endpoint Support for paint endpoint Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants