Commit
·
327c44c
1
Parent(s):
09e5be6
headless
Browse files- handler.py +1 -3
handler.py
CHANGED
@@ -14,10 +14,8 @@ class EndpointHandler():
|
|
14 |
Initialize the handler and load necessary resources.
|
15 |
This method is called once when the service starts.
|
16 |
"""
|
17 |
-
os.environ['DISPLAY'] = ':0' # Sometimes needed to trick OpenGL to run headless
|
18 |
-
|
19 |
# Initialize DepthFlow once for efficiency
|
20 |
-
self.depthflow = DepthScene()
|
21 |
|
22 |
def preprocess(self, inputs):
|
23 |
"""
|
|
|
14 |
Initialize the handler and load necessary resources.
|
15 |
This method is called once when the service starts.
|
16 |
"""
|
|
|
|
|
17 |
# Initialize DepthFlow once for efficiency
|
18 |
+
self.depthflow = DepthScene(backend='headless')
|
19 |
|
20 |
def preprocess(self, inputs):
|
21 |
"""
|