Spaces:
Sleeping
Sleeping
fix error
Browse files- generate.py +2 -1
generate.py
CHANGED
@@ -81,7 +81,8 @@ directories = [
|
|
81 |
|
82 |
# Data Preprocessing
|
83 |
def preprocessing(ttf_file) -> str:
|
84 |
-
|
|
|
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 |
|