|
@@ -228,8 +228,8 @@ def generate_push_dataset():
|
|
|
samples =random.sample(filter_conversation, 100)
|
|
|
|
|
|
# init message push agent
|
|
|
- agent = MessagePushAgent()
|
|
|
for sample in tqdm(samples):
|
|
|
+ agent = MessagePushAgent()
|
|
|
agent_profile = get_profile_info(sample["staff_id"], "staff")[0]['profile']
|
|
|
agent_profile = json.loads(agent_profile)
|
|
|
user_profile = get_profile_info(sample["user_id"], "user")[0]['profile']
|