@@ -375,8 +375,6 @@ def load_detections(
375375 if user_token is None or sequence_id_on_display is None :
376376 raise PreventUpdate
377377
378- print ("load_detections" , detection_fetch_limit , detection_fetch_desc )
379-
380378 detection_fetch_desc = detection_fetch_desc if detection_fetch_desc else False
381379
382380 try :
@@ -396,23 +394,14 @@ def load_detections(
396394
397395 detection_key = f"{ sequence_id_on_display } _{ detection_fetch_limit } _{ detection_fetch_desc } "
398396
399- print ("api_detections" , detection_key )
400-
401- print (api_detections .keys ())
402-
403397 if detection_key not in api_detections .keys ():
404398 try :
405- print ("FETching DATA" , sequence_id_on_display , detection_fetch_limit , detection_fetch_desc )
406399 response = client .fetch_sequences_detections (
407400 sequence_id = sequence_id_on_display , limit = detection_fetch_limit , desc = detection_fetch_desc
408401 )
409402 data = response .json ()
410403 detections = pd .DataFrame (data ) if isinstance (data , list ) else pd .DataFrame ()
411404
412- print ("DETECTION" )
413- print (detections )
414- print ("dd" )
415-
416405 if not detections .empty and "bboxes" in detections .columns :
417406 detections = detections .iloc [::- 1 ].reset_index (drop = True )
418407 detections ["processed_bboxes" ] = detections ["bboxes" ].apply (process_bbox )
@@ -435,10 +424,6 @@ def load_detections(
435424
436425 sequence_on_display = api_detections [detection_key ]
437426
438- sequence_on_displayDF = pd .read_json (StringIO (sequence_on_display ), orient = "split" )
439-
440- print (sequence_on_displayDF )
441-
442427 return json .dumps (are_detections_loaded ), sequence_on_display , json .dumps (api_detections )
443428
444429
0 commit comments