Merge pull request #82 from chg0901/patch-5

Update qwen_gen_data_NoBash.py 修改遍历顺序, 先遍历领域area再遍历心情emotions
This commit is contained in:
xzw 2024-03-16 22:48:44 +08:00 committed by GitHub
commit 7658803a32
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,8 +57,8 @@ if __name__ == '__main__':
conversation_lis = [] conversation_lis = []
for emo in emotions_lis: for area in areas_of_life:
for area in areas_of_life: for emo in emotions_lis:
gen_path = f'./{ai_tool}/{area}/{emo}.jsonl' gen_path = f'./{ai_tool}/{area}/{emo}.jsonl'
for i in tqdm(range(100), desc='{emo}, {area}'.format(emo=emo, area=area)): for i in tqdm(range(100), desc='{emo}, {area}'.format(emo=emo, area=area)):