schen357 commited on
Commit
4aa65fb
·
verified ·
1 Parent(s): 5bd6fc2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +34 -33
app.py CHANGED
@@ -72,6 +72,40 @@ Steps:
72
  4. Output your response clearly in bullet points or a short summary.
73
  """
74
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
 
76
  # ---- III. Aesthetic Direction Agent: Get the design style, color palette, and materials for the room ---- #
77
  AestheticDirectionAgent = Agent(
@@ -203,40 +237,7 @@ Your output will be copied directly into Blender’s scripting window, so it mus
203
  """
204
  )
205
 
206
- # ---- VI Final Rendering Agent: Generates a prompt for a beautiful image ---- #
207
- FinalRenderingAgent = Agent(
208
- name="FinalRenderingAgent",
209
- model="gpt-4-1106-preview",
210
- instructions=f"""{RECOMMENDED_PROMPT_PREFIX}
211
 
212
- You are an elite interior designer specializing in creating ultra-realistic, high-end design renderings for top-tier architecture magazines.
213
-
214
- You will receive three essential inputs:
215
- 1. **blueprint_layout**: This includes the room type, precise dimensions (length, width, height), zones (furniture areas), and layout constraints.
216
- 2. **aesthetic_direction**: This includes the user's design style (e.g., Minimalist, Japandi), preferred color palette, and material choices (e.g., wood, metal, fabric).
217
- 3. **blueprint_image_prompt**: A detailed description of the room layout, based on the user's design choices, which provides a top-down, labeled view.
218
-
219
- ### What you need to do:
220
- - Use the information from these three inputs to generate a **photo-realistic, magazine-cover-ready** image prompt.
221
- - Ensure the image **feels authentic**, **visually stunning**, and **perfectly aligned** with the user's design style and room layout preferences.
222
-
223
- ### Refined visual expectations:
224
- - **Lighting**: Ensure natural light flows into the space, casting soft shadows across the furniture and materials. The lighting should enhance the mood of the design style (e.g., soft, warm light for Japandi or bright, sharp lighting for Modern).
225
- - **Material Reflections**: Realistic reflections on glossy or shiny materials (e.g., marble, glass, metal) — make sure the textures are true to the material and captured in perfect proportion.
226
- - **Camera Angle**: A slightly elevated perspective, offering a wide-angle view of the room to showcase the layout, flow, and design elements. The camera angle should highlight the spatial harmony of the room, not top-down but with a soft tilt to capture the depth and richness.
227
- - **Room Zones**: The furniture arrangement should be optimized for natural light and room flow. Clearly display the zones (e.g., seating, storage, work areas) and make sure the placement looks cohesive and functional.
228
- - **Staging**: The room should be tastefully staged, using **minimalistic elegance**. Incorporate carefully chosen decor elements that enhance the mood but don't clutter the scene.
229
- - **Materials and Textures**: Make sure that materials like wood, metal, stone, and fabric are not only realistic but also express the chosen design style. The textures should feel tangible and detailed.
230
- - **Space Balance**: The design should feel spacious, uncluttered, and well-balanced, with the furniture and features placed in harmony, enhancing the feeling of openness or coziness depending on the style.
231
- - **Aesthetic Tone**: The image should evoke a **warm**, **welcoming**, **editorial** style that could appear in a high-end design magazine. The image should be an eye-catching visual statement that speaks to the chosen design style.
232
-
233
- Use the **blueprint_image_prompt** as a base and elevate it into an actual scene, transforming the technical layout into a gorgeous, lifelike render prompt.
234
-
235
- Return only the **final image prompt** — do not include any additional commentary or explanations. The goal is to create a prompt that will produce an incredibly realistic, styled image worthy of a feature in a top-tier design magazine.
236
-
237
- The room layout should reflect the **user's specific input**, respecting their aesthetic and spatial preferences. Make sure the final render looks stunning, professionally staged, and true to the desired atmosphere.
238
- """,
239
- )
240
 
241
  # --- VII. InputAgent: Collect inputs from the user and passes this to the subsequent agents ---- #
242
  InputAgent = Agent(
 
72
  4. Output your response clearly in bullet points or a short summary.
73
  """
74
  )
75
+ # ---- VI Final Rendering Agent: Generates a prompt for a beautiful image ---- #
76
+ FinalRenderingAgent = Agent(
77
+ name="FinalRenderingAgent",
78
+ model="gpt-4-1106-preview",
79
+ instructions=f"""{RECOMMENDED_PROMPT_PREFIX}
80
+
81
+ You are an elite interior designer specializing in creating ultra-realistic, high-end design renderings for top-tier architecture magazines.
82
+
83
+ You will receive three essential inputs:
84
+ 1. **blueprint_layout**: This includes the room type, precise dimensions (length, width, height), zones (furniture areas), and layout constraints.
85
+ 2. **aesthetic_direction**: This includes the user's design style (e.g., Minimalist, Japandi), preferred color palette, and material choices (e.g., wood, metal, fabric).
86
+ 3. **blueprint_image_prompt**: A detailed description of the room layout, based on the user's design choices, which provides a top-down, labeled view.
87
+
88
+ ### What you need to do:
89
+ - Use the information from these three inputs to generate a **photo-realistic, magazine-cover-ready** image prompt.
90
+ - Ensure the image **feels authentic**, **visually stunning**, and **perfectly aligned** with the user's design style and room layout preferences.
91
+
92
+ ### Refined visual expectations:
93
+ - **Lighting**: Ensure natural light flows into the space, casting soft shadows across the furniture and materials. The lighting should enhance the mood of the design style (e.g., soft, warm light for Japandi or bright, sharp lighting for Modern).
94
+ - **Material Reflections**: Realistic reflections on glossy or shiny materials (e.g., marble, glass, metal) — make sure the textures are true to the material and captured in perfect proportion.
95
+ - **Camera Angle**: A slightly elevated perspective, offering a wide-angle view of the room to showcase the layout, flow, and design elements. The camera angle should highlight the spatial harmony of the room, not top-down but with a soft tilt to capture the depth and richness.
96
+ - **Room Zones**: The furniture arrangement should be optimized for natural light and room flow. Clearly display the zones (e.g., seating, storage, work areas) and make sure the placement looks cohesive and functional.
97
+ - **Staging**: The room should be tastefully staged, using **minimalistic elegance**. Incorporate carefully chosen decor elements that enhance the mood but don't clutter the scene.
98
+ - **Materials and Textures**: Make sure that materials like wood, metal, stone, and fabric are not only realistic but also express the chosen design style. The textures should feel tangible and detailed.
99
+ - **Space Balance**: The design should feel spacious, uncluttered, and well-balanced, with the furniture and features placed in harmony, enhancing the feeling of openness or coziness depending on the style.
100
+ - **Aesthetic Tone**: The image should evoke a **warm**, **welcoming**, **editorial** style that could appear in a high-end design magazine. The image should be an eye-catching visual statement that speaks to the chosen design style.
101
+
102
+ Use the **blueprint_image_prompt** as a base and elevate it into an actual scene, transforming the technical layout into a gorgeous, lifelike render prompt.
103
+
104
+ Return only the **final image prompt** — do not include any additional commentary or explanations. The goal is to create a prompt that will produce an incredibly realistic, styled image worthy of a feature in a top-tier design magazine.
105
+
106
+ The room layout should reflect the **user's specific input**, respecting their aesthetic and spatial preferences. Make sure the final render looks stunning, professionally staged, and true to the desired atmosphere.
107
+ """,
108
+ )
109
 
110
  # ---- III. Aesthetic Direction Agent: Get the design style, color palette, and materials for the room ---- #
111
  AestheticDirectionAgent = Agent(
 
237
  """
238
  )
239
 
 
 
 
 
 
240
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
241
 
242
  # --- VII. InputAgent: Collect inputs from the user and passes this to the subsequent agents ---- #
243
  InputAgent = Agent(