Spaces:
No application file
No application file
Update app.py
Browse files
app.py
CHANGED
|
@@ -83,6 +83,7 @@ Based *only* on the requirements above, generate a single, comprehensive JSON ob
|
|
| 83 |
4. **Creative Asset Prompts:** Generate 1 distinct, creative prompts for logos that match the brand identity. Also, create a unique, descriptive image prompt for every single image required in the content blocks.
|
| 84 |
5. **Navigation:** Populate the 'navLinks' array in the header settings. The links must correspond to the pages you create.
|
| 85 |
6. **Data Integrity:** All paths must be unique and end in '.html'. All block IDs must be unique. Use valid hex color codes with good accessibility contrast. For forms, include relevant fields.
|
|
|
|
| 86 |
"""
|
| 87 |
|
| 88 |
def generate_image(prompt: str, aspect_ratio: str):
|
|
@@ -581,7 +582,7 @@ def create_gradio_app():
|
|
| 581 |
# --- View: Logo Picker ---
|
| 582 |
with gr.Column(visible=False) as logo_picker_view:
|
| 583 |
gr.Markdown("## ✨ Choose Your Logo\nThe AI has generated these logo options. Pick your favorite to continue.")
|
| 584 |
-
logo_gallery = gr.Gallery(label="Logo Options", columns=
|
| 585 |
|
| 586 |
# --- View: Preview & Editor ---
|
| 587 |
with gr.Row(visible=False) as preview_view:
|
|
|
|
| 83 |
4. **Creative Asset Prompts:** Generate 1 distinct, creative prompts for logos that match the brand identity. Also, create a unique, descriptive image prompt for every single image required in the content blocks.
|
| 84 |
5. **Navigation:** Populate the 'navLinks' array in the header settings. The links must correspond to the pages you create.
|
| 85 |
6. **Data Integrity:** All paths must be unique and end in '.html'. All block IDs must be unique. Use valid hex color codes with good accessibility contrast. For forms, include relevant fields.
|
| 86 |
+
7. **Image Limit:** The total number of `blockImagePrompts` you generate must **NOT exceed 9**. Be selective and only create images for the most important content blocks to stay within this limit.
|
| 87 |
"""
|
| 88 |
|
| 89 |
def generate_image(prompt: str, aspect_ratio: str):
|
|
|
|
| 582 |
# --- View: Logo Picker ---
|
| 583 |
with gr.Column(visible=False) as logo_picker_view:
|
| 584 |
gr.Markdown("## ✨ Choose Your Logo\nThe AI has generated these logo options. Pick your favorite to continue.")
|
| 585 |
+
logo_gallery = gr.Gallery(label="Logo Options", columns=1, object_fit="contain", elem_id="logo-picker")
|
| 586 |
|
| 587 |
# --- View: Preview & Editor ---
|
| 588 |
with gr.Row(visible=False) as preview_view:
|