Browse Source

update video rank

linfan 1 year ago
parent
commit
8370e41ade
1 changed files with 2 additions and 2 deletions
  1. 2 2
      video_rank.py

+ 2 - 2
video_rank.py

@@ -177,8 +177,8 @@ def video_new_rank(videoIds, fast_flow_set, flow_set, size, top_K, flow_pool_P):
             if video_scores[i] is None:
                 video_items.append((videoIds[i], 0.0))
             else:
-                video_score_str = json.load(video_scores[i])
-                #print("video_score_str:",video_score_str)
+                video_score_str = json.loads(video_scores[i])
+                print("video_score_str:",video_score_str)
                 video_items.append((videoIds[i], video_score_str[0]))
         except Exception:
             video_items.append((videoIds[i], 0.0))