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