Autostart
Autostart for your app with GUI and more
Motivation
Decorator functionality
Main
"modal_template_state": {
"autostart": true
}Simple example
import os
from dotenv import load_dotenv
import supervisely as sly
from supervisely.app.widgets import Container, Button, Card
load_dotenv("local.env")
load_dotenv(os.path.expanduser("~/supervisely.env"))
# blue button if not activated
activate_btn = Button("Activate")
# green button if activated successfully
deactivate_btn = Button("Deactivate", button_type="success")
deactivate_btn.hide()Inference
Last updated