Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -13,6 +13,7 @@ from gtts import gTTS
|
|
13 |
from googlemaps import Client as GoogleMapsClient
|
14 |
from diffusers import StableDiffusion3Pipeline
|
15 |
import concurrent.futures
|
|
|
16 |
|
17 |
from langchain_openai import OpenAIEmbeddings, ChatOpenAI
|
18 |
from langchain_pinecone import PineconeVectorStore
|
@@ -554,7 +555,9 @@ def generate_image(prompt):
|
|
554 |
return image
|
555 |
|
556 |
# Hardcoded prompt for image generation
|
557 |
-
|
|
|
|
|
558 |
|
559 |
|
560 |
|
@@ -610,7 +613,9 @@ with gr.Blocks(theme='rawrsor1/Everforest') as demo:
|
|
610 |
|
611 |
with gr.Column():
|
612 |
gr.Markdown("<h1>Sponsored</h1>", elem_id="image-markdown")
|
613 |
-
|
|
|
|
|
614 |
|
615 |
setup_ui()
|
616 |
|
|
|
13 |
from googlemaps import Client as GoogleMapsClient
|
14 |
from diffusers import StableDiffusion3Pipeline
|
15 |
import concurrent.futures
|
16 |
+
from PIL import Image
|
17 |
|
18 |
from langchain_openai import OpenAIEmbeddings, ChatOpenAI
|
19 |
from langchain_pinecone import PineconeVectorStore
|
|
|
555 |
return image
|
556 |
|
557 |
# Hardcoded prompt for image generation
|
558 |
+
hardcoded_prompt_1 = "Useing The top events like 'Summer Art Festival'and Date - 06/19/2024 ,Weather-Sunny Bright Day.Create Highly Visually Compelling High Resolution and High Quality Photographics Advatizement for 'Toyota'"
|
559 |
+
hardcoded_prompt_2 = "Create a vibrant poster of Nebraska with beautiful weather, featuring picturesque landscapes, clear skies, and the word 'Nebraska' prominently displayed."
|
560 |
+
hardcoded_prompt_3 = "Create a high-energy scene of a DJ performing on a large stage with vibrant lights, colorful lasers, a lively dancing crowd, and various electronic equipment in the background."
|
561 |
|
562 |
|
563 |
|
|
|
613 |
|
614 |
with gr.Column():
|
615 |
gr.Markdown("<h1>Sponsored</h1>", elem_id="image-markdown")
|
616 |
+
image_output_1 = gr.Image(value=generate_image(hardcoded_prompt_1),width=300, height=300)
|
617 |
+
image_output_2 = gr.Image(value=generate_image(hardcoded_prompt_2),width=300, height=300)
|
618 |
+
image_output_3 = gr.Image(value=generate_image(hardcoded_prompt_3),width=300, height=300)
|
619 |
|
620 |
setup_ui()
|
621 |
|