binoua commited on
Commit
df9cd1e
1 Parent(s): 4652942

Upload 2 files

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