Spaces:
Runtime error
Runtime error
Badr AlKhamissi
commited on
Commit
·
9530fad
1
Parent(s):
cbe8e78
changed font name
Browse files
app.py
CHANGED
@@ -50,10 +50,12 @@ from utils import (
|
|
50 |
combine_word)
|
51 |
import warnings
|
52 |
|
53 |
-
TITLE="""<h1 style="font-size: 42px;" align="center">
|
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 |
|
|
|
|
|
57 |
DESCRIPTION += '\n<p>This demo is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"> Creative Commons Attribution-ShareAlike 4.0 International License</a>.</p>'
|
58 |
|
59 |
if (SPACE_ID := os.getenv('SPACE_ID')) is not None:
|
@@ -298,7 +300,7 @@ with gr.Blocks() as demo:
|
|
298 |
def on_select(evt: gr.SelectData):
|
299 |
return evt.value
|
300 |
|
301 |
-
font_name.value = "ArefRuqaa
|
302 |
|
303 |
run = gr.Button('Generate')
|
304 |
|
|
|
50 |
combine_word)
|
51 |
import warnings
|
52 |
|
53 |
+
TITLE="""<h1 style="font-size: 42px;" align="center">Text-To-Image: Morphing Arabic Text 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 |
|
57 |
+
DESCRIPTION="""This demo builds on the [Word-As-Image for Semantic Typography](https://wordasimage.github.io/Word-As-Image-Page/) work to support Arabic fonts and morphing whole words into semantic concepts."""
|
58 |
+
|
59 |
DESCRIPTION += '\n<p>This demo is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"> Creative Commons Attribution-ShareAlike 4.0 International License</a>.</p>'
|
60 |
|
61 |
if (SPACE_ID := os.getenv('SPACE_ID')) is not None:
|
|
|
300 |
def on_select(evt: gr.SelectData):
|
301 |
return evt.value
|
302 |
|
303 |
+
font_name.value = "ArefRuqaa"
|
304 |
|
305 |
run = gr.Button('Generate')
|
306 |
|