Spaces:
Sleeping
Sleeping
Update server.py
Browse files
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"
|