Spaces:
Sleeping
Sleeping
Commit
·
3a5dd2f
1
Parent(s):
0f61c4d
update
Browse files
app.py
CHANGED
@@ -16,10 +16,10 @@ alphabet = string.digits + string.ascii_lowercase + string.ascii_uppercase + str
|
|
16 |
0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~
|
17 |
'''
|
18 |
|
19 |
-
if not os.path.exists('
|
20 |
-
os.system('wget https://huggingface.co/datasets/JingyeChen22/TextDiffuser/resolve/main/
|
21 |
|
22 |
-
if not os.path.exists('architecture.
|
23 |
os.system('wget https://huggingface.co/JingyeChen22/textdiffuser2-full-ft/blob/main/architecture.jpg')
|
24 |
|
25 |
if not os.path.exists('gray256.jpg'):
|
@@ -72,7 +72,7 @@ text_encoder.resize_token_embeddings(len(tokenizer))
|
|
72 |
#### for interactive
|
73 |
stack = []
|
74 |
state = 0
|
75 |
-
font = ImageFont.truetype("./
|
76 |
|
77 |
def skip_fun(i, t):
|
78 |
global state
|
|
|
16 |
0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~
|
17 |
'''
|
18 |
|
19 |
+
if not os.path.exists('Arial.ttf'):
|
20 |
+
os.system('wget https://huggingface.co/datasets/JingyeChen22/TextDiffuser/resolve/main/Arial.ttf')
|
21 |
|
22 |
+
if not os.path.exists('architecture.jpg'):
|
23 |
os.system('wget https://huggingface.co/JingyeChen22/textdiffuser2-full-ft/blob/main/architecture.jpg')
|
24 |
|
25 |
if not os.path.exists('gray256.jpg'):
|
|
|
72 |
#### for interactive
|
73 |
stack = []
|
74 |
state = 0
|
75 |
+
font = ImageFont.truetype("./Arial.ttf", 32)
|
76 |
|
77 |
def skip_fun(i, t):
|
78 |
global state
|