linfan 1 år sedan
förälder
incheckning
55389eb3b7
2 ändrade filer med 3 tillägg och 3 borttagningar
  1. 2 2
      rank_service.py
  2. 1 1
      video_rank.py

+ 2 - 2
rank_service.py

@@ -245,9 +245,9 @@ def get_tf_serving_sores(feature_dict):
     }
     request_data_dict= {}
     request_data_dict["inputs"] = inputs_data
-    print(request_data_dict)
+    #print(request_data_dict)
     request_data= json.dumps(request_data_dict)
-    print(request_data)
+    #print(request_data)
     # 调用http接口
     result = request_post_data(config_.TF_SERVING_URL,request_data, timeout=(0.1, 1))
     #print("result:", result)

+ 1 - 1
video_rank.py

@@ -615,7 +615,7 @@ def video_new_rank2(data, size, top_K, flow_pool_P, ab_code, mid, exp_config=Non
     sort_index = 0
     if exp_config and "sort_flag" in exp_config:
         sort_index = exp_config["sort_flag"]
-    print("sort_index:", sort_index)
+    #print("sort_index:", sort_index)
     redisObj = RedisHelper()
     vidKeys = []
     rec_recall_item_list = []