Upload 2 files
Browse files- handler.py +2 -2
- requirements.txt +1 -0
handler.py
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
from typing import Dict, List, Any
|
2 |
import numpy as np
|
3 |
-
|
4 |
|
5 |
|
6 |
class EndpointHandler:
|
7 |
def __init__(self, path):
|
8 |
|
9 |
# For server
|
10 |
-
self.fhemodel_server = FHEModelServer(path)
|
11 |
|
12 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
13 |
"""
|
|
|
1 |
from typing import Dict, List, Any
|
2 |
import numpy as np
|
3 |
+
import concrete.ml
|
4 |
|
5 |
|
6 |
class EndpointHandler:
|
7 |
def __init__(self, path):
|
8 |
|
9 |
# For server
|
10 |
+
self.fhemodel_server = concrete.ml.deployment.FHEModelServer(path)
|
11 |
|
12 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
13 |
"""
|
requirements.txt
CHANGED
@@ -1,2 +1,3 @@
|
|
|
|
1 |
concrete-ml
|
2 |
numpy
|
|
|
1 |
+
concrete
|
2 |
concrete-ml
|
3 |
numpy
|