Example 2. App with GUI
config.json for app with GUI explained
Introduction
Configuration for apps with graphical user interface are pretty much the same like any other Supervisely apps. In this section we'll look into Interactive objects distribution app. Application calculates interactive heatmap chart for every class with objects distribution.

supervisely-ecosystem/interactive-objects-distribution/config.json
{
"type": "app",
"version": "2.0.0",
"name": "Interactive objects distribution",
"description": "Explore images with certain number of objects of specific class",
"categories": [
"images",
"visualization",
"exploration",
"statistics",
"visualization stats"
],
"icon": "https://user-images.githubusercontent.com/12828725/183916661-224ff8cb-a3d1-4b82-a629-def8c6de1db5.png",
"poster": "https://user-images.githubusercontent.com/106374579/187223426-ec7e0fae-8ba9-48fd-b71f-8680cc0f1b49.png",
"entrypoint": "python -m uvicorn src.main:app --host 0.0.0.0 --port 8000",
"port": 8000,
"context_menu": {
"target": ["images_project"],
"context_root": "Report"
},
"min_instance_version": "6.5.22"
}
Properties
type
typeType of the Ecosystem entity
"type": "app"version
versionApp engine version
"version": "2.0.0"name
nameName of the app
"name": "Interactive objects distribution"description
descriptionApp description in Ecosystem
"description": "Explore images with certain number of objects of specific class"categories
categoriesList of categories that app are associated with in Ecosystem

"categories": [
"images",
"visualization",
"exploration",
"statistics",
"visualization stats"
]icon
iconLink to the application icon
"icon": "https://user-images.githubusercontent.com/12828725/183916661-224ff8cb-a3d1-4b82-a629-def8c6de1db5.png"poster
posterLink to the application poster
"poster": "https://user-images.githubusercontent.com/106374579/187223426-ec7e0fae-8ba9-48fd-b71f-8680cc0f1b49.png"entrypoint
entrypointInstruction for executing app scripts.
src.main is a relative path to main.py which contains app object :app
"entrypoint": "python -m uvicorn src.main:app --host 0.0.0.0 --port 8000"port
portPredefined standard port for the app
"port": 8000context_menu
context_menuApp context menu configuration options. If not specified, app can be launched only from Ecosystem
context_category - sub section in context menu
target - determines where the application can be launched from

"context_menu": {
"target": ["images_project"],
"context_root": "Report"
}min_instance_version
min_instance_versionMinimum instance version to launch app. Current instance version can be found at the bottom right corner at the Supervisely

"min_instance_version": "6.5.22"Last updated
Was this helpful?