Skip to main content

The python package for api.qewertyy.me

Project description

Simple Usage for palm

from openapi import Client
import asyncio

async def main(prompt: str) -> dict:
    client = Client()
    response = await client.palm(prompt)
    return response

if __name__ == "__main__":
    print(asyncio.run(main("hemlo")))

Simple Usage for upscaling an image.

from openapi import Client
import asyncio

async def main(image: bytes) -> bytes:
    client = Client()
    response = await client.upscale(image)
    with open('upscaled.png', 'wb') as f:
        f.write(imageBytes)


if __name__ == "__main__":
    with open('image.png', 'rb') as f:
        image = f.read()
    asyncio.run(main(image))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sdk-openapi-0.0.7.tar.gz (2.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page