/csp-tech

Primary LanguagePythonISC LicenseISC

CSP Tech Preview APIs

Python client for interacting with CSP's server-side AI technology preview features, for research purposes.

Use a modern version of python 3 and pip install Pillow PyCryptodome

Available functions

Example usage

c = CSPTechAPI()
with open("test.png", "rb") as f:
    dat = c.grayscale_tones(f.read())
    with open("output.png", "wb") as g:
        g.write(dat)