bkhmsi commited on
Commit
183883b
1 Parent(s): 5f3f221

arabic font bug fix

Browse files
app.py CHANGED
@@ -195,8 +195,8 @@ def run_main_ex(word, semantic_concept, script, font_selector, num_steps, seed):
195
  def run_main_app(semantic_concept, word, script, font_selected, prompt_suffix, num_steps, seed, is_seed_rand, dist_loss_weight, pixel_dist_kernel_blur, pixel_dist_sigma, angeles_w, example=0):
196
 
197
  if font_selected.lower() != "default":
198
- font_key, font_val = font_selected.lower().split(":")
199
- font_key = font_key.strip()
200
  font_val = font_val.strip()
201
  else:
202
  font_key = "default"
 
195
  def run_main_app(semantic_concept, word, script, font_selected, prompt_suffix, num_steps, seed, is_seed_rand, dist_loss_weight, pixel_dist_kernel_blur, pixel_dist_sigma, angeles_w, example=0):
196
 
197
  if font_selected.lower() != "default":
198
+ font_key, font_val = font_selected.split(":")
199
+ font_key = font_key.lower().strip()
200
  font_val = font_val.strip()
201
  else:
202
  font_key = "default"
code/data/fonts/arabic/{ArefRuqaa-Regular.ttf → 00.ttf} RENAMED
File without changes