Ver Fonte

更新环境安装包

yangzeyu há 11 meses atrás
pai
commit
0ba77eb49f
2 ficheiros alterados com 73 adições e 47 exclusões
  1. 1 1
      api.py
  2. 72 46
      requirements.txt

+ 1 - 1
api.py

@@ -32,7 +32,7 @@ class RecommendRequest(BaseModel):
     recall_cust_count: int      # 推荐的商户数量
     delivery_count: int              # 投放的品规数量
     
-@app.post("/recommend")
+@app.post("/brandcultivation/api/v1/recommend")
 def recommend(request: RecommendRequest):
     gbdtlr_model_path = os.path.join("./models/rank/weights", request.city_uuid, "gbdtlr_model.pkl")
     if not os.path.exists(gbdtlr_model_path):

+ 72 - 46
requirements.txt

@@ -1,46 +1,72 @@
-asttokens==3.0.0
-async-timeout==5.0.1
-comm==0.2.2
-debugpy==1.8.12
-decorator==5.1.1
-et_xmlfile==2.0.0
-exceptiongroup==1.2.2
-executing==2.2.0
-filelock==3.17.0
-greenlet==3.1.1
-ipykernel==6.29.5
-ipython==8.31.0
-jedi==0.19.2
-joblib==1.4.2
-matplotlib-inline==0.1.7
-nest-asyncio==1.6.0
-numpy==2.2.2
-openpyxl==3.1.5
-packaging==24.2
-pandas==2.2.3
-parso==0.8.4
-pexpect==4.9.0
-platformdirs==4.3.6
-prompt_toolkit==3.0.50
-psutil==6.1.1
-ptyprocess==0.7.0
-pure_eval==0.2.3
-Pygments==2.19.1
-PyMySQL==1.1.1
-python-dateutil==2.9.0.post0
-pytz==2024.2
-PyYAML==6.0.2
-pyzmq==26.2.1
-redis==5.2.1
-scikit-learn==1.6.1
-scipy==1.15.1
-six==1.17.0
-SQLAlchemy==2.0.37
-stack-data==0.6.3
-threadpoolctl==3.5.0
-tornado==6.4.2
-tqdm==4.67.1
-traitlets==5.14.3
-typing_extensions==4.12.2
-tzdata==2025.1
-wcwidth==0.2.13
+annotated-types==0.7.0
+anyio==4.8.0
+asttokens==3.0.0
+async-timeout==5.0.1
+certifi==2025.1.31
+charset-normalizer==3.4.1
+click==8.1.8
+cloudpickle==3.1.1
+comm==0.2.2
+debugpy==1.8.12
+decorator==5.1.1
+et_xmlfile==2.0.0
+exceptiongroup==1.2.2
+executing==2.2.0
+fastapi==0.115.11
+filelock==3.17.0
+gensim==4.3.3
+greenlet==3.1.1
+h11==0.14.0
+idna==3.10
+ipykernel==6.29.5
+ipython==8.31.0
+jedi==0.19.2
+joblib==1.4.2
+jupyter_client==8.6.3
+jupyter_core==5.7.2
+lightgbm==4.6.0
+llvmlite==0.44.0
+matplotlib-inline==0.1.7
+nest-asyncio==1.6.0
+numba==0.61.0
+numpy==1.26.4
+openpyxl==3.1.5
+packaging==24.2
+pandas==2.2.3
+parso==0.8.4
+pexpect==4.9.0
+platformdirs==4.3.6
+prompt_toolkit==3.0.50
+psutil==6.1.1
+ptyprocess==0.7.0
+pure_eval==0.2.3
+pydantic==2.10.6
+pydantic_core==2.27.2
+Pygments==2.19.1
+PyMySQL==1.1.1
+python-dateutil==2.9.0.post0
+pytz==2024.2
+PyYAML==6.0.2
+pyzmq==26.2.1
+redis==5.2.1
+requests==2.32.3
+scikit-learn==1.6.1
+scipy==1.13.1
+shap==0.47.1
+six==1.17.0
+slicer==0.0.8
+smart-open==7.1.0
+sniffio==1.3.1
+SQLAlchemy==2.0.37
+stack-data==0.6.3
+starlette==0.46.0
+threadpoolctl==3.5.0
+tornado==6.4.2
+tqdm==4.67.1
+traitlets==5.14.3
+typing_extensions==4.12.2
+tzdata==2025.1
+urllib3==2.4.0
+uvicorn==0.34.0
+wcwidth==0.2.13
+wrapt==1.17.2