Spaces:
Runtime error
Runtime error
bug fix
Browse files
app.py
CHANGED
@@ -99,6 +99,9 @@ def set_config(semantic_concept, word, script, prompt_suffix, font_name, num_ste
|
|
99 |
cfg.optimized_letter = word
|
100 |
cfg.script = script.lower()
|
101 |
|
|
|
|
|
|
|
102 |
script_path = f"code/data/fonts/{cfg.script}"
|
103 |
cfg.font = [x for x in os.listdir(script_path) if "ttf" in x][0][:-4]
|
104 |
|
|
|
99 |
cfg.optimized_letter = word
|
100 |
cfg.script = script.lower()
|
101 |
|
102 |
+
if cfg.script == "simplified chinese":
|
103 |
+
cfg.script = "chinese"
|
104 |
+
|
105 |
script_path = f"code/data/fonts/{cfg.script}"
|
106 |
cfg.font = [x for x in os.listdir(script_path) if "ttf" in x][0][:-4]
|
107 |
|