baselbyte commited on
Commit
959f82f
·
1 Parent(s): 8d28ccd
Files changed (1) hide show
  1. handler.py +15 -0
handler.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Dict, List, Any
2
+
3
+ class EndpointHandler():
4
+ def __init__(self, path=""):
5
+ print("init..............")
6
+
7
+ def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
8
+ """
9
+ data args:
10
+ inputs (:obj: `str` | `PIL.Image` | `np.array`)
11
+ kwargs
12
+ Return:
13
+ A :obj:`list` | `dict`: will be serialized and returned
14
+ """
15
+ print("call.............................")