The python package for api.qewertyy.me
Project description
Available Models
from openapi import Client
def main() -> dict:
client = Client()
response = client.getModels()
return response
if __name__ == "__main__":
print(main())
output
{
"text": [
{
"id": 0,
"name": "models/text-bison-001",
"baseModel": "PaLM"
}
],
"chat": [
{
"id": 1,
"name": "models/chat-bison-001",
"baseModel": "PaLM"
},
{
"id": 5,
"name": "gpt-3.5-turbo",
"baseModel": "GPT"
}
],
"image": [
{
"id": 2,
"name": "MeinaMix",
"baseModel": "SD"
},
{
"id": 3,
"name": "AnyLora",
"baseModel": "SD"
},
{
"id": 4,
"name": "AnyThingV4",
"baseModel": "SD"
},
{
"id": 6,
"name": "Bing",
"baseModel": "Dall-E"
}
]
}
palm
from openapi import Client
def main(prompt: str) -> dict:
client = Client()
response = client.palm(prompt)
return response
if __name__ == "__main__":
print(main("hello world"))
upscaling an image.
from openapi import Client
def main(image: bytes) -> bytes:
client = Client()
imageBytes = client.upscale(image)
with open('upscaled.png', 'wb') as f:
f.write(imageBytes)
if __name__ == "__main__":
image = open('examples/images/image.png', 'rb').read()
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-1.2.0.tar.gz
(3.4 kB
view details)
File details
Details for the file sdk-openapi-1.2.0.tar.gz.
File metadata
- Download URL: sdk-openapi-1.2.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84803a4219822f801e42bc3653072dcd9f8208f08568ca6e26b6c006ebf24e22
|
|
| MD5 |
8dcf1594b4dae9a8e0cfb388ac56d98b
|
|
| BLAKE2b-256 |
e16d505fbf8c80a1390681ad0f65836e80d889741e26d7f67c0555b6397c40ec
|