The banana package is a python client to interact with your machine learning models hosted on Banana
Project description
Banana Python SDK
Getting Started
Install via pip
pip3 install banana-dev
Get your API Key
Run:
import banana_dev as banana
api_key = "YOUR_API_KEY"
model_key = "YOUR_MODEL_KEY"
model_parameters = {
# a json specific to your model. For example:
"a": 1,
"b": 2
}
out = banana.run(api_key, model_key, model_parameters)
print(out)
Return type:
{
{
"id": "12345678-1234-1234-1234-123456789012",
"message": "success",
"created": 1649712752,
"apiVersion": "26 Nov 2021",
"modelOutputs": [
{
# a json specific to your model. In this example, the sum of "a" and "b" from the above model_parameters
"sum": 3,
}
]
}
}
Parse the server output:
model_out = out["modelOutputs"][0]
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
banana_dev-3.0.0.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for banana_dev-3.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f091dfb459081b81f59c0bd1686ae2b02f5c88b74fb9c91f4cbca72027176741 |
|
MD5 | 3a23752ad2264c652d9e132cad20a5af |
|
BLAKE2b-256 | be39574561f377d911c95797980c9f599a7fc10ae456aeff3cb98c32fc424726 |