Python SDK for RockAI.online
Project description
Setup
Python SDK for inference and training for RockAI
# Install package using pip
pip install rockai-cli-app
from rockai_cli_app import Client
import asyncio
my_client = Client()
# Function to run the asynchronous function and print the result
async def main():
result = await my_client.run_async(
version="001bb81139b01780380407b4106ac681df46108e002eafbeb9ccb2d8faca42e1",
input={
"width": 1024,
"height": 1024,
"prompt": "a cartoon of a IRONMAN fighting with HULK, wall painting",
"guidance_scale": 3,
"negative_prompt": "(deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, NSFW",
"num_inference_steps": 15,
}
)
print("Result:", result)
# Run the main function using asyncio.run
if __name__ == "__main__":
asyncio.run(main())
# clean docker space
docker system prune --all --force --volumes
Development
- Python version 3.9.19
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
rockai-0.1.69.tar.gz
(28.8 kB
view details)
Built Distribution
rockai-0.1.69-py3-none-any.whl
(34.4 kB
view details)
File details
Details for the file rockai-0.1.69.tar.gz
.
File metadata
- Download URL: rockai-0.1.69.tar.gz
- Upload date:
- Size: 28.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.7 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18bd6b742c6328e00c3a1cc91c1bc7a1749ac2ee59beeb5659ec81cc3b3e046a |
|
MD5 | 1d029e872bef4d2f53a5b49daa5f9f83 |
|
BLAKE2b-256 | 98e097bc0d28a8edf8f5a650cea95239dda32d8b39f4a85663a8b478f4285cfc |
File details
Details for the file rockai-0.1.69-py3-none-any.whl
.
File metadata
- Download URL: rockai-0.1.69-py3-none-any.whl
- Upload date:
- Size: 34.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.7 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66b04a49c36b1da4f55c5ec6e2fb437ed04a79e857da623f9688e0fa9381f769 |
|
MD5 | a6f8ddcc7cee5922b5b8e481f7d5f2cd |
|
BLAKE2b-256 | 5a347a2513d1c39406f31c38df46f1f5b007327ef7fa2685f84558b051ae4794 |