Commit d68118ea authored by 张彦钊's avatar 张彦钊

change device id for predict

parent bffc8bac
......@@ -73,7 +73,7 @@ def upload_predict(user_profile, instance):
def wrapper_result(prob, device_id):
prob = prob.head(500)
prob.loc[:,"url"] = prob["cid"].apply(lambda x: "http://m.igengmei.com/diary_book/" + str(x[6:]) + '/')
prob.to_csv(DIRECTORY_PATH + "result/{}_feed".format(device_id),index= False)
prob.to_csv(DIRECTORY_PATH + "result/feed_{}".format(device_id),index= False)
def router(device_id):
......@@ -86,4 +86,4 @@ def router(device_id):
if __name__ == "__main__":
router(device_id='B42685C0-702F-4C54-8C9E-73AEC5F3AAEC')
router(device_id='androidid_3bb90a09dbf05da2')
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