Spaces:
Runtime error
Runtime error
Commit ·
a458c8b
1
Parent(s): f4fd578
Update app.py
Browse files
app.py
CHANGED
|
@@ -307,8 +307,6 @@ def generate_image(prompt):
|
|
| 307 |
"https://img.freepik.com/premium-photo/pile-documents-desk-office-stack-business-papersgenerative-ai_391052-15381.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 308 |
"https://img.freepik.com/free-photo/old-books-arrangement-with-copy-space_23-2148898331.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph"
|
| 309 |
]
|
| 310 |
-
|
| 311 |
-
#new
|
| 312 |
|
| 313 |
apple = [
|
| 314 |
"https://img.freepik.com/free-photo/apples-table_144627-6741.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
|
@@ -414,6 +412,160 @@ def generate_image(prompt):
|
|
| 414 |
"https://img.freepik.com/free-photo/close-up-gibbon-nature_23-2150798383.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph"
|
| 415 |
]
|
| 416 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 417 |
if "face" in prompt:
|
| 418 |
output_url = random.choice(faces)
|
| 419 |
elif "landscape" in prompt:
|
|
@@ -510,6 +662,44 @@ def generate_image(prompt):
|
|
| 510 |
output_url = random.choice(france)
|
| 511 |
elif "monkey" in prompt:
|
| 512 |
output_url = random.choice(monkey)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 513 |
else:
|
| 514 |
return "No image generated."
|
| 515 |
image = load_image(output_url)
|
|
@@ -524,7 +714,7 @@ iface = gr.Interface(
|
|
| 524 |
examples=[
|
| 525 |
["Realistic face, high-resolution, realistic, 4k, 8k, face, image"],
|
| 526 |
["Realistic image of beautiful landscape and mountains, 4k, beautifull, realistic, landscape, ai, mountains"],
|
| 527 |
-
["Image of
|
| 528 |
["Realistic avatar man standing in rainforest, 8k, 8k, hd, detailed"]
|
| 529 |
]
|
| 530 |
)
|
|
|
|
| 307 |
"https://img.freepik.com/premium-photo/pile-documents-desk-office-stack-business-papersgenerative-ai_391052-15381.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 308 |
"https://img.freepik.com/free-photo/old-books-arrangement-with-copy-space_23-2148898331.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph"
|
| 309 |
]
|
|
|
|
|
|
|
| 310 |
|
| 311 |
apple = [
|
| 312 |
"https://img.freepik.com/free-photo/apples-table_144627-6741.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
|
|
|
| 412 |
"https://img.freepik.com/free-photo/close-up-gibbon-nature_23-2150798383.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph"
|
| 413 |
]
|
| 414 |
|
| 415 |
+
#new
|
| 416 |
+
|
| 417 |
+
circle = [
|
| 418 |
+
"https://img.freepik.com/free-vector/stroke-round-geometric-shape-vector_53876-175080.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 419 |
+
"https://img.freepik.com/free-photo/free-photo-beauty-product-bottle-mockup-image-with-background_1340-31411.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 420 |
+
"https://img.freepik.com/free-photo/misty-julian-alps-peak-round-badge_53876-153331.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 421 |
+
"https://img.freepik.com/premium-photo/abstract-background-circle_118019-1319.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 422 |
+
"https://img.freepik.com/free-photo/abstract-spaceship-orbiting-starry-galaxy-backdrop-circle-generated-by-ai_188544-9683.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph"
|
| 423 |
+
]
|
| 424 |
+
|
| 425 |
+
sphere = [
|
| 426 |
+
"https://img.freepik.com/free-vector/abstract-sphere-with-flowing-particles_1048-12235.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 427 |
+
"https://img.freepik.com/premium-psd/3d-abstract-purple-metal-object-render_52659-1948.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 428 |
+
"https://img.freepik.com/free-vector/abstract-vector-colorful-mesh-dark-background-futuristic-style-card-elegant-background-business-presentations-corrupted-point-sphere-chaos-aesthetics_1217-4607.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 429 |
+
"https://img.freepik.com/free-vector/abstract-sphere-with-flowing-particles_1048-12235.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 430 |
+
"https://img.freepik.com/premium-psd/3d-abstract-purple-metal-object-render_52659-1916.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph"
|
| 431 |
+
]
|
| 432 |
+
|
| 433 |
+
square = [
|
| 434 |
+
"https://img.freepik.com/free-vector/grey-square-pattern-background-vector-illustration_1164-1350.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 435 |
+
"https://img.freepik.com/free-vector/abstract-mosaic-background-vector-illustration-eps-10_173207-1857.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 436 |
+
"https://img.freepik.com/free-photo/square-box-with-blue-light-it_1340-34463.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 437 |
+
"https://img.freepik.com/free-photo/flat-lay-blue-frame-concept_23-2148553337.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 438 |
+
"https://img.freepik.com/free-photo/black-frame-white-brick-wall_24972-315.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph"
|
| 439 |
+
]
|
| 440 |
+
|
| 441 |
+
cube = [
|
| 442 |
+
"https://img.freepik.com/free-photo/abstract-3d-dice-with-dots_23-2150891336.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 443 |
+
"https://img.freepik.com/free-vector/box-mockup_1017-7633.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 444 |
+
"https://img.freepik.com/free-vector/collection-different-highs-museum-exposition-blank-product-stands_134830-669.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 445 |
+
"https://img.freepik.com/free-photo/crystal-ice-cube-sits-refreshing-blue-liquid-generated-by-ai_188544-16470.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 446 |
+
"https://img.freepik.com/free-vector/3d-geometric-cubic-grid-technology-style-vector-design_1017-39964.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph"
|
| 447 |
+
]
|
| 448 |
+
|
| 449 |
+
piano = [
|
| 450 |
+
"https://img.freepik.com/free-photo/piano-keys-closeup-blurred-background-with-bokeh_169016-41303.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 451 |
+
"https://img.freepik.com/free-photo/close-up-anthropomorphic-robot-singing_23-2150865921.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 452 |
+
"https://img.freepik.com/premium-photo/close-up-piano-keys_86669-423.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 453 |
+
"https://img.freepik.com/free-vector/simple-background-music-festival_91128-1440.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 454 |
+
"https://img.freepik.com/free-photo/elegant-grand-piano-with-sheet-music-isolated-white-background-close-up-ai-generative_123827-24241.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph"
|
| 455 |
+
]
|
| 456 |
+
|
| 457 |
+
hole = [
|
| 458 |
+
"https://img.freepik.com/premium-photo/black-hole-digital-black-hole-space-illustration_950002-96604.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 459 |
+
"https://img.freepik.com/premium-photo/black-hole-digital-black-hole-space-illustration_950002-58848.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 460 |
+
"https://img.freepik.com/premium-photo/black-hole-digital-black-hole-space-illustration_950002-58641.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 461 |
+
"https://img.freepik.com/premium-photo/black-hole-digital-black-hole-space-illustration_950002-96397.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 462 |
+
"https://img.freepik.com/free-vector/3d-grid-wormhole-illusion-design-element-vector_53876-161539.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph"
|
| 463 |
+
]
|
| 464 |
+
|
| 465 |
+
albania = [
|
| 466 |
+
"https://img.freepik.com/free-photo/sarande-harbor-early-evening_181624-49115.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 467 |
+
"https://img.freepik.com/free-photo/realistic-albania-flag-background_125540-2710.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 468 |
+
"https://img.freepik.com/free-photo/aerial-shot-valbona-valley-national-park-with-reflecting-waters-albania_181624-30934.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 469 |
+
"https://img.freepik.com/free-photo/low-angle-shot-road-forest-with-mountains-distance-valbona-valley-national-park-albania_181624-26176.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 470 |
+
"https://img.freepik.com/free-photo/albania-flag-wrinkled-dark-background-3d-render_1379-653.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph"
|
| 471 |
+
]
|
| 472 |
+
|
| 473 |
+
heart = [
|
| 474 |
+
"https://img.freepik.com/free-photo/fluffy-heart-studio_23-2150864860.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 475 |
+
"https://img.freepik.com/free-vector/gradient-isolated-heart-background_23-2147737116.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 476 |
+
"https://img.freepik.com/free-photo/realistic-heart-shape-studio_23-2150827366.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 477 |
+
"https://img.freepik.com/free-vector/gradient-heart_78370-478.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 478 |
+
"https://img.freepik.com/premium-photo/pretty-realistic-heart-illustration-with-isolated-background_742252-4113.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph"
|
| 479 |
+
]
|
| 480 |
+
|
| 481 |
+
mouse = [
|
| 482 |
+
"https://img.freepik.com/free-photo/cute-rat-posing-studio_23-2150702639.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=ais",
|
| 483 |
+
"https://img.freepik.com/free-photo/cute-rat-posing-studio_23-2150702635.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=ais",
|
| 484 |
+
"https://img.freepik.com/free-photo/view-rodent-rat_23-2150762800.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 485 |
+
"https://img.freepik.com/free-photo/cute-rat-living-indoors_23-2150702737.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 486 |
+
"https://img.freepik.com/free-photo/mischief-wild-rats_23-2150762946.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph"
|
| 487 |
+
]
|
| 488 |
+
|
| 489 |
+
rat = [
|
| 490 |
+
"https://img.freepik.com/free-photo/cute-rat-living-outdoors_23-2150702547.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=ais",
|
| 491 |
+
"https://img.freepik.com/free-photo/cute-rat-living-indoors_23-2150702753.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=ais",
|
| 492 |
+
"https://img.freepik.com/free-photo/front-view-scientist-holding-rat_23-2150702725.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=ais",
|
| 493 |
+
"https://img.freepik.com/free-photo/closeup-marsh-rice-rat-sunlight-with-blurry-background_181624-36058.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=ais",
|
| 494 |
+
"https://img.freepik.com/free-photo/portrait-wild-rat_23-2150762844.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=ais"
|
| 495 |
+
]
|
| 496 |
+
|
| 497 |
+
dot = [
|
| 498 |
+
"https://img.freepik.com/free-vector/black-white-wavy-halftone-background-vector_53876-67271.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 499 |
+
"https://img.freepik.com/free-vector/abstract-circular-halftone-design-modern-background_1055-17636.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 500 |
+
"https://img.freepik.com/free-vector/black-wave-halftone-background_1199-279.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 501 |
+
"https://img.freepik.com/free-vector/halftone-background-abstract-black-white-dots-shape_314614-1558.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 502 |
+
"https://img.freepik.com/free-vector/dotted-black-background_78370-1817.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph"
|
| 503 |
+
]
|
| 504 |
+
|
| 505 |
+
pencil = [
|
| 506 |
+
"https://img.freepik.com/free-photo/row-sharp-colored-pencils-against-white-background_23-2147890129.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 507 |
+
"https://img.freepik.com/free-vector/writting-pencil-design_1095-187.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 508 |
+
"https://img.freepik.com/free-vector/sharpened-wooden-pencils-shavings_1284-25607.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 509 |
+
"https://img.freepik.com/free-photo/colored-pencils-white-background_23-2147710341.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 510 |
+
"https://img.freepik.com/premium-vector/set-plain-encils_117553-72.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph"
|
| 511 |
+
]
|
| 512 |
+
|
| 513 |
+
pen = [
|
| 514 |
+
"https://img.freepik.com/free-psd/packaging-cosmetic-concealer-mock-up_73621-1091.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 515 |
+
"https://img.freepik.com/free-vector/school-pens-set_74855-7854.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 516 |
+
"https://img.freepik.com/free-vector/business-pen-set_1284-21143.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 517 |
+
"https://img.freepik.com/free-photo/3d-rendering-pen-ai-generated_23-2150695467.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 518 |
+
"https://img.freepik.com/free-vector/vector-fountain-writing-pen-contract-signing_1284-41915.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph"
|
| 519 |
+
]
|
| 520 |
+
|
| 521 |
+
sphinxCat = [
|
| 522 |
+
"https://img.freepik.com/free-photo/cute-sphynx-cat-kitty-posing-isolated-black-studio-background_155003-46123.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=ais",
|
| 523 |
+
"https://img.freepik.com/premium-photo/canadian-sphinx-male-cat-fighting-pose-crouched-released-claws-raised-tail-ready-jump_494000-1477.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=ais",
|
| 524 |
+
"https://img.freepik.com/free-photo/view-adorable-kitten-inside-house_23-2150758180.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=ais",
|
| 525 |
+
"https://img.freepik.com/free-photo/cute-sphynx-cat-relaxing-indoors_23-2150679154.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=ais",
|
| 526 |
+
"https://img.freepik.com/free-photo/adorable-cat-without-hair_144627-10527.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=ais"
|
| 527 |
+
]
|
| 528 |
+
|
| 529 |
+
crestedDog = [
|
| 530 |
+
"https://img.freepik.com/free-photo/closeup-shot-cute-chinese-crested-dog-isolated-white-surface_181624-43625.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=ais",
|
| 531 |
+
"https://img.freepik.com/premium-photo/sitting-chinese-crested-dog-with-white-long-hair-copy-space_756748-60510.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=ais",
|
| 532 |
+
"https://img.freepik.com/free-photo/sideways-portrait-chinese-crested-puppy-with-copy-space-background_23-2148326286.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=ais",
|
| 533 |
+
"https://img.freepik.com/free-photo/chinese-crested-breed-looking-away-blue-background_23-2148326284.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=ais",
|
| 534 |
+
"https://img.freepik.com/free-photo/portrait-chinese-crested-dog-with-white-hair_23-2148326283.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=ais"
|
| 535 |
+
]
|
| 536 |
+
|
| 537 |
+
pushkin = [
|
| 538 |
+
"https://ideogram.ai/api/images/direct/5DAaKMReT_SIuGQaD08MlA.jpg",
|
| 539 |
+
"https://ideogram.ai/api/images/direct/UXEXVF8cTUeUw66bt0-W0w.jpg",
|
| 540 |
+
"https://ideogram.ai/api/images/direct/kIa2Ad00S9GOoawkL8uy_Q.jpg",
|
| 541 |
+
"https://ideogram.ai/api/images/direct/tGd1-nNbRqaeJU-4Ejhj7g.jpg",
|
| 542 |
+
"https://upload.wikimedia.org/wikipedia/commons/thumb/5/56/Kiprensky_Pushkin.jpg/220px-Kiprensky_Pushkin.jpg"
|
| 543 |
+
]
|
| 544 |
+
|
| 545 |
+
lamp = [
|
| 546 |
+
"https://img.freepik.com/premium-photo/bulb-isolated-white_1026553-544.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 547 |
+
"https://img.freepik.com/premium-photo/light-bulb-symbol-new-ideas_10221-10590.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 548 |
+
"https://img.freepik.com/free-photo/glowing-filament-ignites-ideas-innovative-solutions-generated-by-ai_188544-9614.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 549 |
+
"https://img.freepik.com/free-photo/pillow-bed-with-light-lamp_74190-2095.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph",
|
| 550 |
+
"https://img.freepik.com/free-photo/light-bulb_1232-1543.jpg?size=626&ext=jpg&ga=GA1.1.1708812069.1697374121&semt=sph"
|
| 551 |
+
]
|
| 552 |
+
|
| 553 |
+
hungerGames = [
|
| 554 |
+
"https://static.independent.co.uk/s3fs-public/thumbnails/image/2015/11/20/12/hungergamesposter_0.jpg?quality=75&width=990&crop=3%3A2%2Csmart&auto=webp",
|
| 555 |
+
"https://www.denofgeek.com/wp-content/uploads/2021/05/hunger-games-winners-ranked.jpeg?resize=768%2C432",
|
| 556 |
+
"https://cdn.mos.cms.futurecdn.net/4505e85a5f65e0dbdd98ae229917e8a2-970-80.jpg.webp",
|
| 557 |
+
"https://cdn.mos.cms.futurecdn.net/14a68d9954f27752ea29cc05157b137c-970-80.jpg.webp",
|
| 558 |
+
"https://cdn.mos.cms.futurecdn.net/a86140997d2adcd4cda32e2285b14dce-970-80.jpg.webp"
|
| 559 |
+
]
|
| 560 |
+
|
| 561 |
+
zomblieland = [
|
| 562 |
+
"https://i.insider.com/5151db9ceab8eafd68000000?width=300&format=jpeg&auto=webp",
|
| 563 |
+
"https://upload.wikimedia.org/wikipedia/en/6/6d/Zombie_design_for_Zombieland%2C_main.jpg",
|
| 564 |
+
"https://resizing.flixster.com/1T9l5_xewcQaP7yGfiqfUj50eP8=/300x300/v2/https://resizing.flixster.com/A3N2nxMokla5281kp9PinOWKZDE=/ems.cHJkLWVtcy1hc3NldHMvbW92aWVzLzQxMDFmMWYxLWZiZjktNDE1Mi1iNWVlLTFmMDFiYjJmYzVhMy53ZWJw",
|
| 565 |
+
"https://resizing.flixster.com/VyDr_t7-bWYJai_PqbdteQ2Jqp0=/740x380/v2/https://statcdn.fandango.com/MPX/image/NBCU_Fandango/158/659/thumb_15589634-6A4A-4B92-8A68-2CFF1811C143.jpg",
|
| 566 |
+
"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT1E68NFPsfaGkeF7eZZ8T79GpB1J6s9jkFkm_TNgBimuMMJXDMQ4d2I2y0kA&s"
|
| 567 |
+
]
|
| 568 |
+
|
| 569 |
if "face" in prompt:
|
| 570 |
output_url = random.choice(faces)
|
| 571 |
elif "landscape" in prompt:
|
|
|
|
| 662 |
output_url = random.choice(france)
|
| 663 |
elif "monkey" in prompt:
|
| 664 |
output_url = random.choice(monkey)
|
| 665 |
+
elif "circle" in prompt:
|
| 666 |
+
output_url = random.choice(circle)
|
| 667 |
+
elif "sphere" in prompt:
|
| 668 |
+
output_url = random.choice(sphere)
|
| 669 |
+
elif "square" in prompt:
|
| 670 |
+
output_url = random.choice(square)
|
| 671 |
+
elif "cube" in prompt:
|
| 672 |
+
output_url = random.choice(cube)
|
| 673 |
+
elif "piano" in prompt:
|
| 674 |
+
output_url = random.choice(piano)
|
| 675 |
+
elif "hole" in prompt:
|
| 676 |
+
output_url = random.choice(hole)
|
| 677 |
+
elif "albania" in prompt:
|
| 678 |
+
output_url = random.choice(albania)
|
| 679 |
+
elif "heart" in prompt:
|
| 680 |
+
output_url = random.choice(heart)
|
| 681 |
+
elif "mouse" in prompt:
|
| 682 |
+
output_url = random.choice(mouse)
|
| 683 |
+
elif "rat" in prompt:
|
| 684 |
+
output_url = random.choice(rat)
|
| 685 |
+
elif "dot" in prompt:
|
| 686 |
+
output_url = random.choice(dot)
|
| 687 |
+
elif "pencil" in prompt:
|
| 688 |
+
output_url = random.choice(pencil)
|
| 689 |
+
elif "pen" in prompt:
|
| 690 |
+
output_url = random.choice(pen)
|
| 691 |
+
elif "sphinx cat" in prompt:
|
| 692 |
+
output_url = random.choice(sphinxCat)
|
| 693 |
+
elif "chineese crested" in prompt:
|
| 694 |
+
output_url = random.choice(crestedDog)
|
| 695 |
+
elif "pushkin" in prompt:
|
| 696 |
+
output_url = random.choice(pushkin)
|
| 697 |
+
elif "lamp" in prompt:
|
| 698 |
+
output_url = random.choice(lamp)
|
| 699 |
+
elif "hunger games" in prompt:
|
| 700 |
+
output_url = random.choice(hungerGames)
|
| 701 |
+
elif "zombieland" in prompt:
|
| 702 |
+
output_url = random.choice(zombieland)
|
| 703 |
else:
|
| 704 |
return "No image generated."
|
| 705 |
image = load_image(output_url)
|
|
|
|
| 714 |
examples=[
|
| 715 |
["Realistic face, high-resolution, realistic, 4k, 8k, face, image"],
|
| 716 |
["Realistic image of beautiful landscape and mountains, 4k, beautifull, realistic, landscape, ai, mountains"],
|
| 717 |
+
["Image of a chineese crested with high details, 4k, realistic"],
|
| 718 |
["Realistic avatar man standing in rainforest, 8k, 8k, hd, detailed"]
|
| 719 |
]
|
| 720 |
)
|