Badr AlKhamissi commited on
Commit
b374c34
1 Parent(s): 05e4671

removed letter args

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -50,7 +50,7 @@ from utils import (
50
  combine_word)
51
  import warnings
52
 
53
- TITLE="""<h1 style="font-size: 42px;" align="center">Word-As-Image for Semantic Typography</h1>"""
54
  DESCRIPTION="""A demo for [Word-As-Image for Semantic Typography](https://wordasimage.github.io/Word-As-Image-Page/). By using Word-as-Image, a visual representation of the meaning of the word is created while maintaining legibility of the text and font style.
55
  Please select a semantic concept word and a letter you wish to generate, it will take ~5 minutes to perform 500 iterations."""
56
 
@@ -142,12 +142,12 @@ def init_shapes(svg_path, trainable: Mapping[str, bool]):
142
  return shapes_init, shape_groups_init, parameters
143
 
144
 
145
- def run_main_ex(semantic_concept, word, letter, font_name, num_steps):
146
- return list(next(run_main_app(semantic_concept, word, letter, font_name, num_steps, 1)))
147
 
148
- def run_main_app(semantic_concept, word, letter, font_name, num_steps, example=0):
149
 
150
- cfg = set_config(semantic_concept, word, letter, font_name, num_steps)
151
 
152
  pydiffvg.set_use_gpu(torch.cuda.is_available())
153
 
 
50
  combine_word)
51
  import warnings
52
 
53
+ TITLE="""<h1 style="font-size: 42px;" align="center">Word-To-Image</h1>"""
54
  DESCRIPTION="""A demo for [Word-As-Image for Semantic Typography](https://wordasimage.github.io/Word-As-Image-Page/). By using Word-as-Image, a visual representation of the meaning of the word is created while maintaining legibility of the text and font style.
55
  Please select a semantic concept word and a letter you wish to generate, it will take ~5 minutes to perform 500 iterations."""
56
 
 
142
  return shapes_init, shape_groups_init, parameters
143
 
144
 
145
+ def run_main_ex(semantic_concept, word, font_name, num_steps):
146
+ return list(next(run_main_app(semantic_concept, word, font_name, num_steps, 1)))
147
 
148
+ def run_main_app(semantic_concept, word, font_name, num_steps, example=0):
149
 
150
+ cfg = set_config(semantic_concept, word, font_name, num_steps)
151
 
152
  pydiffvg.set_use_gpu(torch.cuda.is_available())
153