microhum commited on
Commit
1c52ea9
·
1 Parent(s): 60fc8e6
Files changed (1) hide show
  1. generate.py +2 -1
generate.py CHANGED
@@ -81,7 +81,8 @@ directories = [
81
 
82
  # Data Preprocessing
83
  def preprocessing(ttf_file) -> str:
84
- shutil.rmtree("inference")
 
85
  for directory in directories:
86
  os.makedirs(directory, exist_ok=True)
87
 
 
81
 
82
  # Data Preprocessing
83
  def preprocessing(ttf_file) -> str:
84
+ if os.path.exists("inference"):
85
+ shutil.rmtree("inference")
86
  for directory in directories:
87
  os.makedirs(directory, exist_ok=True)
88