Commit a163dad7 authored by 赵威's avatar 赵威

add timer

parent 9cb95dc0
from datetime import datetime
import tensorflow as tf
from main_portrait import offline_predict_diary, offline_predict_tractate
......@@ -13,7 +15,7 @@ def predict_with_city_changed(device_dict, diary_dict, tractate_dict, diary_pred
if (total > 0):
device_id = redis_client4.lpop(key)
device_id = str(device_id, "utf-8")
print(device_id)
print(device_id + " " + str(datetime.now()))
offline_predict_diary(device_id, device_dict, diary_dict, diary_predict_fn)
offline_predict_tractate(device_id, device_dict, tractate_dict, tractate_predict_fn)
print("=========================================\n")
......
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