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
Release files for rockai 0.1.74
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rockai-0.1.74.tar.gz | 28.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rockai-0.1.74-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 63.4 kB
Release files / rockai-0.1.74.tar.gz
| Download URL | rockai-0.1.74.tar.gz |
|---|---|
| Size | 28.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f1275a53987888278497b33a8a104be1fac8c004e82efae273a6f0411105a400
|
|
BLAKE2b-256 checksum How to use checksums |
7bf9b35685559026a59b8527c438a76477d4f559f2260535359e5f40786c13e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.7 Darwin/23.4.0
|
Release files / rockai-0.1.74-py3-none-any.whl
| Download URL | rockai-0.1.74-py3-none-any.whl |
|---|---|
| Size | 34.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
67bf374f104193cea9da7c9c579453ceee8e1e6e010f410026fec4464d3df1bb
|
|
BLAKE2b-256 checksum How to use checksums |
85898753e65612512df3d24c6b22d2d2b35cd9a9ff13b89718b01ae2557505c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.7 Darwin/23.4.0
|