Spaces:
Running
on
T4
Running
on
T4
JingyeChen22
commited on
Commit
•
4595437
1
Parent(s):
90aa2bc
Update app.py
Browse files
app.py
CHANGED
@@ -11,20 +11,20 @@ import re
|
|
11 |
import zipfile
|
12 |
|
13 |
if not os.path.exists('textdiffuser-ckpt'):
|
14 |
-
os.system('wget https://
|
15 |
with zipfile.ZipFile('textdiffuser-ckpt-new.zip', 'r') as zip_ref:
|
16 |
zip_ref.extractall('.')
|
17 |
|
18 |
if not os.path.exists('images'):
|
19 |
-
os.system('wget https://
|
20 |
with zipfile.ZipFile('images.zip', 'r') as zip_ref:
|
21 |
zip_ref.extractall('.')
|
22 |
|
23 |
-
os.system('wget https://
|
24 |
|
25 |
|
26 |
if not os.path.exists('Arial.ttf'):
|
27 |
-
os.system('wget https://
|
28 |
|
29 |
|
30 |
os.system('echo finish')
|
|
|
11 |
import zipfile
|
12 |
|
13 |
if not os.path.exists('textdiffuser-ckpt'):
|
14 |
+
os.system('wget https://huggingface.co/datasets/JingyeChen22/TextDiffuser/resolve/main/textdiffuser-ckpt-new.zip')
|
15 |
with zipfile.ZipFile('textdiffuser-ckpt-new.zip', 'r') as zip_ref:
|
16 |
zip_ref.extractall('.')
|
17 |
|
18 |
if not os.path.exists('images'):
|
19 |
+
os.system('wget https://huggingface.co/datasets/JingyeChen22/TextDiffuser/resolve/main/images.zip')
|
20 |
with zipfile.ZipFile('images.zip', 'r') as zip_ref:
|
21 |
zip_ref.extractall('.')
|
22 |
|
23 |
+
os.system('wget https://huggingface.co/datasets/JingyeChen22/TextDiffuser/resolve/main/404.jpg')
|
24 |
|
25 |
|
26 |
if not os.path.exists('Arial.ttf'):
|
27 |
+
os.system('wget https://huggingface.co/datasets/JingyeChen22/TextDiffuser/resolve/main/Arial.ttf')
|
28 |
|
29 |
|
30 |
os.system('echo finish')
|