bkhmsi commited on
Commit
44b636f
1 Parent(s): 10ca74d
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -100,8 +100,7 @@ def set_config(semantic_concept, word, script, prompt_suffix, font_name, num_ste
100
  cfg.script = script.lower()
101
 
102
  script_path = f"code/data/fonts/{cfg.script}"
103
- if cfg.font == "none":
104
- cfg.font = [x for x in os.listdir(script_path) if "ttf" in x][0][:-4]
105
 
106
  if is_seed_rand == "Random Seed":
107
  cfg.seed = np.random.randint(10000)
 
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
 
105
  if is_seed_rand == "Random Seed":
106
  cfg.seed = np.random.randint(10000)