File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 15
15
from program import ProgramEngine , Program
16
16
from config import Config
17
17
from coderbotTestUnit import run_test as runCoderbotTestUnit
18
+ from cnn_manager import CNNManager
18
19
import pigpio
19
20
from musicPackages import MusicPackageManager
20
21
@@ -291,3 +292,9 @@ def testCoderbot(data):
291
292
# taking first JSON key value (varargin)
292
293
tests_state = runCoderbotTestUnit (data [list (data .keys ())[0 ]])
293
294
return tests_state
295
+
296
+ def list_cnn_models ():
297
+ cnn = CNNManager .get_instance ()
298
+ logging .info ("cnn_models_list" )
299
+ return json .dumps (cnn .get_models ())
300
+
Original file line number Diff line number Diff line change @@ -302,3 +302,13 @@ paths:
302
302
responses :
303
303
200 :
304
304
description : Sent command to the bot GPIO.
305
+ /listCNNModels :
306
+ get :
307
+ operationId : " api.list_cnn_models"
308
+ summary : " list of CNN Models"
309
+ tags :
310
+ - CNN Models
311
+ responses :
312
+ 200 :
313
+ description : " CNN Models as JSON Object"
314
+
You can’t perform that action at this time.
0 commit comments