File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 33from fire_classifier .util .api import API
44
55# A: init API
6- app = FastAPI (title = API ["title" ], description = API ["description" ],
7- version = API ["version" ], openapi_tags = API ["endpoints" ])
6+ app = FastAPI (
7+ title = API ["title" ],
8+ description = API ["description" ],
9+ version = API ["version" ],
10+ openapi_tags = API ["endpoints" ],
11+ )
812
913# B: init ML inference object, and the routes
1014predictor_config_path = API ["config_path" ]
Original file line number Diff line number Diff line change 88
99# Info about what data users can request.
1010# These are intended shown on the UI, related only to a specific endpoint.
11+ # Note: the value in the "name" field should match what goes in the
12+ # "tags" parameter of the corresponding app route in main.py!!
1113API_ENDPOINTS = (
1214 {
1315 "name" : "Detect Fire" ,
1719
1820# Tells the app how to find the config.yaml (for running ML inference)
1921BASE_DIR = Path (__file__ ).resolve ().parent .parent .parent
20- CONFIG_PATH = os .path .join (BASE_DIR , ' app' , ' config.yaml' )
22+ CONFIG_PATH = os .path .join (BASE_DIR , " app" , " config.yaml" )
2123
2224# Wraps all the API metadata as one dictionary
2325API = {
2628 "version" : API_VERSION ,
2729 "endpoints" : API_ENDPOINTS ,
2830 "config_path" : CONFIG_PATH ,
29- }
31+ }
You can’t perform that action at this time.
0 commit comments