Spaces:
Runtime error
Runtime error
Commit
Β·
90aa2bc
1
Parent(s):
57a5565
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,6 +20,9 @@ if not os.path.exists('images'):
|
|
| 20 |
with zipfile.ZipFile('images.zip', 'r') as zip_ref:
|
| 21 |
zip_ref.extractall('.')
|
| 22 |
|
|
|
|
|
|
|
|
|
|
| 23 |
if not os.path.exists('Arial.ttf'):
|
| 24 |
os.system('wget https://conversationhub.blob.core.windows.net/textdiffuserdemo/Arial.ttf')
|
| 25 |
|
|
@@ -456,7 +459,7 @@ def has_chinese_char(string):
|
|
| 456 |
else:
|
| 457 |
return False
|
| 458 |
|
| 459 |
-
image_404 = Image.open('
|
| 460 |
|
| 461 |
def text_to_image(prompt,slider_step,slider_guidance,slider_batch):
|
| 462 |
|
|
|
|
| 20 |
with zipfile.ZipFile('images.zip', 'r') as zip_ref:
|
| 21 |
zip_ref.extractall('.')
|
| 22 |
|
| 23 |
+
os.system('wget https://conversationhub.blob.core.windows.net/textdiffuserdemo/404.jpg')
|
| 24 |
+
|
| 25 |
+
|
| 26 |
if not os.path.exists('Arial.ttf'):
|
| 27 |
os.system('wget https://conversationhub.blob.core.windows.net/textdiffuserdemo/Arial.ttf')
|
| 28 |
|
|
|
|
| 459 |
else:
|
| 460 |
return False
|
| 461 |
|
| 462 |
+
image_404 = Image.open('404.jpg')
|
| 463 |
|
| 464 |
def text_to_image(prompt,slider_step,slider_guidance,slider_batch):
|
| 465 |
|