From 2fdb60911c18c09a2e2c0cfd8d23e17e6e95755a Mon Sep 17 00:00:00 2001 From: Plachta Date: Thu, 16 Feb 2023 20:00:53 +0800 Subject: [PATCH] upload files --- preprocess.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/preprocess.py b/preprocess.py index c3cce31..c543e98 100644 --- a/preprocess.py +++ b/preprocess.py @@ -37,5 +37,6 @@ if __name__ == "__main__": with open("final_annotation_val.txt", 'w', encoding='utf-8') as f: for line in actual_user_annos: f.write(line) - for line in custom_character_anno: - f.write(line) + if os.path.exists("custom_character_anno.txt"): + for line in custom_character_anno: + f.write(line)