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
Release history Release notifications | RSS feed
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)