Update handler.py
Browse files- handler.py +11 -2
handler.py
CHANGED
@@ -6,7 +6,7 @@ import logging
|
|
6 |
import json
|
7 |
import traceback
|
8 |
import os
|
9 |
-
from typing import Dict, Any
|
10 |
|
11 |
# 로깅 설정
|
12 |
logging.basicConfig(level=logging.INFO)
|
@@ -22,7 +22,16 @@ class EndpointHandler:
|
|
22 |
self.model.eval()
|
23 |
|
24 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
# inputs = data.get("inputs")
|
28 |
# if not inputs:
|
|
|
6 |
import json
|
7 |
import traceback
|
8 |
import os
|
9 |
+
from typing import Dict, List, Any
|
10 |
|
11 |
# 로깅 설정
|
12 |
logging.basicConfig(level=logging.INFO)
|
|
|
22 |
self.model.eval()
|
23 |
|
24 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
25 |
+
"""
|
26 |
+
data args:
|
27 |
+
inputs (:obj: `str`): base64 encoded video data
|
28 |
+
date (:obj: `str`)
|
29 |
+
Return:
|
30 |
+
A :obj:`list` | `dict`: will be serialized and returned
|
31 |
+
"""
|
32 |
+
|
33 |
+
inputs = data.get("inputs")
|
34 |
+
return 1
|
35 |
|
36 |
# inputs = data.get("inputs")
|
37 |
# if not inputs:
|