-
Notifications
You must be signed in to change notification settings - Fork 0
/
try.py
19 lines (17 loc) · 892 Bytes
/
try.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import os
base_dir = 'llm_cache'
for root, dirs, files in os.walk(base_dir):
for file in files:
if file == 'gemini_prompt':
os.rename(os.path.join(root, file), os.path.join(root, 'gemini_cot_prompt'))
elif file == 'gemini_response':
os.rename(os.path.join(root, file), os.path.join(root, 'gemini_cot_response'))
elif file == 'gpt_prompt':
os.rename(os.path.join(root, file), os.path.join(root, 'gpt35_cot_prompt'))
elif file == 'gpt_response':
os.rename(os.path.join(root, file), os.path.join(root, 'gpt35_cot_response'))
elif file == 'gemini_prompt_nocot':
os.rename(os.path.join(root, file), os.path.join(root, 'gemini_icl_prompt'))
elif file == 'gemini_response_nocot':
os.rename(os.path.join(root, file), os.path.join(root, 'gemini_icl_response'))
print("Done")