Spaces:
Runtime error
Runtime error
bug fix
Browse files
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 |
-
|
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)
|