from banana_dev import Client
# Create a reference to your model on Banana
my_client = Client(
api_key="YOUR_API_KEY", # Found in dashboard
url="https://YOUR_URL.run.banana.dev", # Found in model view in dashboard
)
# Specify the model's input JSON
inputs = {
"prompt": "In the summer I like [MASK].",
}
# Call your model's inference endpoint on Banana
result, meta = my_client.call("/", inputs)
print(result)
SSLError: HTTPSConnectionPool(host='<YOUR_URL>.run.banana.dev', port=443): Max retries exceeded with url: [/](https://file+.vscode-resource.vscode-cdn.net/) (Caused by SSLError(SSLCertVerificationError(1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for '<YOUR_URL>.run.banana.dev'. (_ssl.c:1006)")))
I am having an error when using the template code
SSLError: HTTPSConnectionPool(host='<YOUR_URL>.run.banana.dev', port=443): Max retries exceeded with url: [/](https://file+.vscode-resource.vscode-cdn.net/) (Caused by SSLError(SSLCertVerificationError(1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for '<YOUR_URL>.run.banana.dev'. (_ssl.c:1006)")))