From 3a3d0f40ba8f734eb882f2d65a5033b5db3f5cc9 Mon Sep 17 00:00:00 2001 From: Luke Berndt Date: Wed, 6 Mar 2024 09:02:58 -0500 Subject: [PATCH] Update occlusion_mapper.py --- occlusion-mapper/occlusion_mapper.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/occlusion-mapper/occlusion_mapper.py b/occlusion-mapper/occlusion_mapper.py index 15efae1..bd68170 100644 --- a/occlusion-mapper/occlusion_mapper.py +++ b/occlusion-mapper/occlusion_mapper.py @@ -27,7 +27,7 @@ def __init__( self.mapping_filepath = mapping_filepath self.camera_ip = camera_ip - self.app = Flask(__name__) + self.app = Flask(__name__, static_url_path="", static_folder="static", template_folder="static") CORS(self.app) # Add this line to enable CORS self.app.add_url_rule( "/camera-point", "camera-point", self._camera_callback @@ -128,8 +128,7 @@ def main(self: Any) -> None: frontend_thread = Thread( target=self.app.run, - kwargs={"host": "0.0.0.0", "port": 5000, "debug": False, "static_url_path":"", "static_folder":"static", - "template_folder": "static"}, + kwargs={"host": "0.0.0.0", "port": 5000, "debug": False}, ) frontend_thread.start()