TDN-M commited on
Commit
00a11a2
·
verified ·
1 Parent(s): 283e02f

Update pages/api/generate.js

Browse files
Files changed (1) hide show
  1. pages/api/generate.js +1 -1
pages/api/generate.js CHANGED
@@ -58,7 +58,7 @@ export default async function handler(req, res) {
58
  // Combine drawing with text prompt
59
  generationContent = [
60
  imagePart,
61
- { text: `${prompt}. "Take the provided 2D plan layout. Convert it into a detailed 3D sketch, including walls, doors, windows, and basic furniture placement. Enhance the design with a realistic perspective and improve it to create a stunning 3D representation. Maintain the original style of the layout while adding depth and visual appeal." }
62
  ];
63
  console.log("Using multipart content with drawing data and prompt");
64
  } else {
 
58
  // Combine drawing with text prompt
59
  generationContent = [
60
  imagePart,
61
+ { text: ${prompt}. From the provided 2D plan layout as the starting point. Convert it into a detailed 3D sketch, including walls, doors, windows, and basic furniture placement. || "Enhance the design with a realistic perspective and improve it to create a stunning 3D representation. Maintain the original style of the layout while adding depth and visual appeal" }
62
  ];
63
  console.log("Using multipart content with drawing data and prompt");
64
  } else {