Spaces:
Runtime error
Runtime error
Commit
·
95ea443
1
Parent(s):
f7dbac7
Update app.py
Browse files
app.py
CHANGED
@@ -568,6 +568,15 @@ def generate_image(prompt):
|
|
568 |
"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT1E68NFPsfaGkeF7eZZ8T79GpB1J6s9jkFkm_TNgBimuMMJXDMQ4d2I2y0kA&s"
|
569 |
]
|
570 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
571 |
if "face" in prompt:
|
572 |
output_url = random.choice(faces)
|
573 |
elif "landscape" in prompt:
|
@@ -702,6 +711,8 @@ def generate_image(prompt):
|
|
702 |
output_url = random.choice(hungerGames)
|
703 |
elif "zombieland" in prompt:
|
704 |
output_url = random.choice(zombieland)
|
|
|
|
|
705 |
else:
|
706 |
output_url = "https://img.freepik.com/free-vector/oops-404-error-with-broken-robot-concept-illustration_114360-5529.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=ais"
|
707 |
|
|
|
568 |
"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT1E68NFPsfaGkeF7eZZ8T79GpB1J6s9jkFkm_TNgBimuMMJXDMQ4d2I2y0kA&s"
|
569 |
]
|
570 |
|
571 |
+
anteater = [
|
572 |
+
"https://img.freepik.com/premium-photo/bear-with-long-tail-walks-through-grass_425154-514.jpg?size=626&ext=jpg&ga=GA1.1.1004335988.1700322568&semt=sph",
|
573 |
+
"https://img.freepik.com/premium-photo/giant-anteater-is-walking-grass_425154-513.jpg?size=626&ext=jpg&ga=GA1.1.1004335988.1700322568&semt=sph",
|
574 |
+
"https://img.freepik.com/premium-photo/porcupine-with-long-tail_233859-3179.jpg?size=626&ext=jpg&ga=GA1.1.1004335988.1700322568&semt=sph",
|
575 |
+
"https://img.freepik.com/premium-photo/brown-black-animal-with-black-face-ears_233859-3177.jpg?size=626&ext=jpg&ga=GA1.1.1004335988.1700322568&semt=sph",
|
576 |
+
"https://img.freepik.com/premium-photo/anteater-walks-through-its-enclosure-zoo_105751-14607.jpg?size=626&ext=jpg&ga=GA1.1.1004335988.1700322568&semt=sph"
|
577 |
+
]
|
578 |
+
|
579 |
+
|
580 |
if "face" in prompt:
|
581 |
output_url = random.choice(faces)
|
582 |
elif "landscape" in prompt:
|
|
|
711 |
output_url = random.choice(hungerGames)
|
712 |
elif "zombieland" in prompt:
|
713 |
output_url = random.choice(zombieland)
|
714 |
+
elif "ant-eater" in prompt:
|
715 |
+
output_url = random.choice(anteater)
|
716 |
else:
|
717 |
output_url = "https://img.freepik.com/free-vector/oops-404-error-with-broken-robot-concept-illustration_114360-5529.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=ais"
|
718 |
|