# List of file paths | |
file_paths = ["load_data.py", "transformer_model.py", "train.py"] | |
# Loop through the file paths | |
for file_path in file_paths: | |
# Use exec() to run the code from each file | |
with open(file_path, 'r') as file: | |
code = file.read() | |
exec(code) | |