tykiww commited on
Commit
72ff5b3
1 Parent(s): d959e7d

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +6 -0
server.py CHANGED
@@ -6,6 +6,12 @@ class EmbeddingService:
6
  self.keys = self.get_keys()
7
  self.conf = conf
8
 
 
 
 
 
 
 
9
 
10
  def get_keys(self):
11
  "Get keys required to set up loading"
 
6
  self.keys = self.get_keys()
7
  self.conf = conf
8
 
9
+ def __enter__(self):
10
+ print("Start Embedding Service")
11
+ return self
12
+
13
+ def __exit__(self, exc_type, exc_val, exc_tb):
14
+ print("Exiting Embedding Service")
15
 
16
  def get_keys(self):
17
  "Get keys required to set up loading"