def create_bash_file(single_path_seq): ori_bash_file = "./scripts/val_gradio/predict_taco_rndseed_spatial.sh" with open(ori_bash_file) as rf: bash_string = rf.read() bash_string = bash_string.replace("./data/taco/source_data/20231104_017.pkl", single_path_seq) dst_bash_file = "./scripts/val_gradio/predict_taco_rndseed_spatial_temp.sh" with open(dst_bash_file, "w") as wf: wf.write(bash_string) return dst_bash_file