File size: 280 Bytes
63b0b0b
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
# 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)