Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,9 +11,9 @@ def create_main_app():
|
|
| 11 |
|
| 12 |
gr.Markdown("## System Prompt:")
|
| 13 |
gr.Markdown("""You are a top-tier performance digital marketer and creative strategist with 15+ years of expertise in affiliate marketing.
|
| 14 |
-
Your objective is to analyze the provided winning ad image, deconstruct
|
| 15 |
The new design should convey a {sentiment} sentiment and incorporate the user instruction: {user_prompt}.
|
| 16 |
-
Create a visually compelling ad optimized for {platform} Ads that is scroll-stopping, pattern-interrupting, and designed to drive high CTR and CR. Utilize striking color combinations, dynamic contrast levels, and strategic layout compositions to command attention while aligning with the target audience avatar and reinforcing the brand’s messaging.""")
|
| 17 |
|
| 18 |
with gr.Column():
|
| 19 |
template_file = gr.File(label="Upload Template Image", file_types=[".png", ".jpg", ".jpeg"])
|
|
@@ -21,9 +21,9 @@ def create_main_app():
|
|
| 21 |
category = gr.Textbox(label="Category")
|
| 22 |
|
| 23 |
with gr.Row():
|
| 24 |
-
size = gr.Dropdown(choices=["1024x1024", "1536x1024", "1024x1536"], label="Image Size")
|
| 25 |
-
quality = gr.Dropdown(choices=["low", "medium"], label="Quality")
|
| 26 |
-
sentiment = gr.Dropdown(choices=["
|
| 27 |
|
| 28 |
user_prompt = gr.Textbox(label="User Prompt", lines=4)
|
| 29 |
|
|
|
|
| 11 |
|
| 12 |
gr.Markdown("## System Prompt:")
|
| 13 |
gr.Markdown("""You are a top-tier performance digital marketer and creative strategist with 15+ years of expertise in affiliate marketing.
|
| 14 |
+
Your objective is to analyze the provided winning template image and given ad image, deconstruct ad image concept, visual composition, and color scheme, and generate a fresh, conversion-focused ad visual in the given template image tailored for the {category} niche.
|
| 15 |
The new design should convey a {sentiment} sentiment and incorporate the user instruction: {user_prompt}.
|
| 16 |
+
Create a visually compelling ad optimized for {platform} Ads in the same template that is scroll-stopping, pattern-interrupting, and designed to drive high CTR and CR. Utilize striking color combinations, dynamic contrast levels, and strategic layout compositions to command attention while aligning with the target audience avatar and reinforcing the brand’s messaging.""")
|
| 17 |
|
| 18 |
with gr.Column():
|
| 19 |
template_file = gr.File(label="Upload Template Image", file_types=[".png", ".jpg", ".jpeg"])
|
|
|
|
| 21 |
category = gr.Textbox(label="Category")
|
| 22 |
|
| 23 |
with gr.Row():
|
| 24 |
+
size = gr.Dropdown(choices=["auto", "1024x1024", "1536x1024", "1024x1536"], label="Image Size")
|
| 25 |
+
quality = gr.Dropdown(choices=["auto", "low", "medium"], label="Quality")
|
| 26 |
+
sentiment = gr.Dropdown(choices=["same as original", "positive", "negative"])
|
| 27 |
|
| 28 |
user_prompt = gr.Textbox(label="User Prompt", lines=4)
|
| 29 |
|