From 931c60ee5779392a990506a59f40dad9ed0adc78 Mon Sep 17 00:00:00 2001 From: niten Date: Sat, 7 Jan 2023 14:10:20 -0800 Subject: [PATCH] Include everything independenly --- objectifier-module.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/objectifier-module.nix b/objectifier-module.nix index 62c72af..ec739fc 100644 --- a/objectifier-module.nix +++ b/objectifier-module.nix @@ -57,7 +57,15 @@ in { after = [ "network-online.target" ]; wantedBy = [ "multi-user.target" ]; reloadIfChanged = true; - path = with pkgs; [ pythonYolo ]; + path = with pkgs.python310Packages; [ + pkgs.python310 + gunicorn + fastapi + gunicorn + opencv4 + python-multipart + uvicorn + ]; environment = { OBJECTIFIER_YOLOV3_CONFIG = "${pkgs.yolov3-data}/yolov3.cfg"; OBJECTIFIER_YOLOV3_WEIGHTS = "${pkgs.yolov3-data}/yolov3.weights";