Skip to content

Commit

Permalink
Update occlusion_mapper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
robotastic committed Mar 6, 2024
1 parent 90abf7d commit 3a3d0f4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions occlusion-mapper/occlusion_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 3a3d0f4

Please sign in to comment.