Sharing a Template
Templates let you share production-ready ML models with the community and make money doing it!
note: Instant templates don't allow dynamically changing build args at this time, coming soon!
We use this to auto-generate docs + code snippets
Format:
name: The projects name
category: Must pick one of the following. default = "Uncategorized"
Computer Vision | Natural Language | Audio | Multimodal | Uncategorized
example_input: JSON input you'd send to your model. Inc
lude all fields.example_output: JSON output from model. Include all fields
version: string, tag for the version. This must be changed to push new template versions
Example
{
"name": "Stable Diffusion 2.1",
"category": "Computer Vision",
"example_input": {"prompt": "table with a book on it",
"height":512,
"width":512
},
"example_output": {"base64_output": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAACSgAAASwCAYA..."},
"version": "1"
}
Open your model on app.banana.dev and once it's built you'll see a Share button
You must agree to the following guidelines to keep our community healthy
- Only share opensource code you have permission to share
- Model does not violate any local or international laws
- You've documented how to use the template and it does what you say it does
Once all checks pass, click continue, now you can view it at app.banana.dev/templates!
To update your template
- push code to your git repo like you normally do
- in one of your git commits update banana_config.json with a new version string
- once the build completes on Banana click Share again for the model
- The new template will be shared replacing the previous one with your latest version.
Last modified 7mo ago