Commit 0c3c5865 authored by 赵威's avatar 赵威

save to json

parent 284560ba
......@@ -154,7 +154,7 @@ def save_diary_similarity(load_file, index_path, face_to_vec_f):
print(res_dict[key])
redis_key = "doris:diary:face_similary"
redis_client3.hmset(redis_key, res_dict)
redis_client3.hmset(redis_key, json.dumps(res_dict))
def main():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment