LDanielBlueway commited on
Commit
3c65a51
·
verified ·
1 Parent(s): 3428f7c

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +16 -0
handler.py CHANGED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Dict, List, Any
2
+ from io import BytesIO
3
+ import base64
4
+ import logging
5
+
6
+ class EndpointHandler():
7
+ def __init__(self, path=""):
8
+
9
+ def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
10
+ """
11
+ data args:
12
+ image (:obj:`string`)
13
+ candidates (:obj:`list`)
14
+ Return:
15
+ A :obj:`list`:. The list contains items that are dicts should be liked {"label": "XXX", "score": 0.82}
16
+ """