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
type
Type of the Ecosystem entity
"type": "app"
version
version
App engine version
"version": "2.0.0"
name
name
Name of the app
"name": "Interactive objects distribution"
description
description
App description in Ecosystem
"description": "Explore images with certain number of objects of specific class"
categories
categories
List of categories that app are associated with in Ecosystem

"categories": [
"images",
"visualization",
"exploration",
"statistics",
"visualization stats"
]
icon
icon
Link to the application icon
"icon": "https://user-images.githubusercontent.com/12828725/183916661-224ff8cb-a3d1-4b82-a629-def8c6de1db5.png"
poster
poster
Link to the application poster
"poster": "https://user-images.githubusercontent.com/106374579/187223426-ec7e0fae-8ba9-48fd-b71f-8680cc0f1b49.png"
entrypoint
entrypoint
Instruction 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
port
Predefined standard port for the app
"port": 8000
context_menu
context_menu
App 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_version
Minimum 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?