JingyeChen commited on
Commit
94ba4d8
1 Parent(s): 9ace041
Files changed (1) hide show
  1. app.py +12 -5
app.py CHANGED
@@ -19,11 +19,18 @@ alphabet = string.digits + string.ascii_lowercase + string.ascii_uppercase + str
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'):
26
- os.system('wget https://huggingface.co/JingyeChen22/textdiffuser2-full-ft/blob/main/gray256.jpg')
 
 
 
 
 
 
 
 
 
27
 
28
  # print(os.system('apt install mlocate'))
29
  # print(os.system('ls'))
@@ -358,7 +365,7 @@ with gr.Blocks() as demo:
358
  }
359
  </style>
360
 
361
- <img src="file/architecture.jpg" alt="textdiffuser-2" class="scaled-image">
362
  </div>
363
  """)
364
 
 
19
  if not os.path.exists('Arial.ttf'):
20
  os.system('wget https://huggingface.co/datasets/JingyeChen22/TextDiffuser/resolve/main/Arial.ttf')
21
 
 
 
22
 
23
+ if not os.path.exists('images2'):
24
+ os.system('wget https://huggingface.co/datasets/JingyeChen22/TextDiffuser/resolve/main/images2.zip')
25
+ with zipfile.ZipFile('images2.zip', 'r') as zip_ref:
26
+ zip_ref.extractall('.')
27
+
28
+
29
+ # if not os.path.exists('architecture.jpg'):
30
+ # os.system('wget https://huggingface.co/JingyeChen22/textdiffuser2-full-ft/blob/main/architecture.jpg')
31
+
32
+ # if not os.path.exists('gray256.jpg'):
33
+ # os.system('wget https://huggingface.co/JingyeChen22/textdiffuser2-full-ft/blob/main/gray256.jpg')
34
 
35
  # print(os.system('apt install mlocate'))
36
  # print(os.system('ls'))
 
365
  }
366
  </style>
367
 
368
+ <img src="file/images2/architecture.jpg" alt="textdiffuser-2" class="scaled-image">
369
  </div>
370
  """)
371