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.71.tar.gz
(28.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
rockai-0.1.71-py3-none-any.whl
(34.5 kB
view details)
File details
Details for the file rockai-0.1.71.tar.gz.
File metadata
- Download URL: rockai-0.1.71.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 |
5d3b873eebe1f07a6a06e2bdf401959e3c058b760280c40856539377b1834f4e
|
|
| MD5 |
f2dc379c48632f2a07069b9f88d579a8
|
|
| BLAKE2b-256 |
fd3bfa001190d8e50ec8ad305ba577468dcd15f58f1c975d03e6eddbaee03cee
|
File details
Details for the file rockai-0.1.71-py3-none-any.whl.
File metadata
- Download URL: rockai-0.1.71-py3-none-any.whl
- Upload date:
- Size: 34.5 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 |
269873fb28ab551926adc46a6bc4d4d55aa248e72987df66bdbcc4a4ccbb0ef5
|
|
| MD5 |
9396c722d8872504b13587e1e52a1905
|
|
| BLAKE2b-256 |
930987ab2dd3a362cef5fd950cd3ef7fe36ae628923624313ac1bf56dec35e97
|