bkhmsi commited on
Commit
6cee4ab
1 Parent(s): 9d9f133
Files changed (1) hide show
  1. app.py +3 -0
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