Update app.py
Browse files
app.py
CHANGED
@@ -238,24 +238,35 @@ def ask_llm_for_final_prompt(kr_prompt):
|
|
238 |
client = genai.Client(api_key=api_key)
|
239 |
|
240 |
llm_prompt = f"""
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
4.
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
255 |
์๋ณธ ํ๋กฌํํธ:
|
256 |
{kr_prompt}
|
257 |
|
258 |
-
|
259 |
"""
|
260 |
|
261 |
response = client.models.generate_content(
|
@@ -266,7 +277,7 @@ def ask_llm_for_final_prompt(kr_prompt):
|
|
266 |
temperature=0.7,
|
267 |
top_p=0.95,
|
268 |
top_k=40,
|
269 |
-
max_output_tokens=
|
270 |
)
|
271 |
)
|
272 |
|
@@ -290,137 +301,169 @@ def ask_llm_for_final_prompt(kr_prompt):
|
|
290 |
logger.exception("LLM 2์ฐจ ํ๋กฌํํธ ์์ฑ ์ค ์ค๋ฅ ๋ฐ์:")
|
291 |
return f"#1 {kr_prompt}"
|
292 |
|
293 |
-
# LLM ์คํ์ผ ํ๋กฌํํธ ์์ฑ ํจ์
|
294 |
def generate_llm_prompt(product_name, product_category, background_type, background_style, lighting, texture, color_tone, mood):
|
295 |
-
|
296 |
-
|
|
|
|
|
|
|
297 |
|
298 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
299 |
if background_type == "์์ฐ ๋ฐฐ๊ฒฝ":
|
300 |
if background_style == "์ฒ":
|
301 |
-
prompt += "
|
302 |
elif background_style == "ํด๋ณ":
|
303 |
-
prompt += "
|
304 |
elif background_style == "์ฐ":
|
305 |
-
prompt += "์
์ฅํ ์ฐ์
|
306 |
elif background_style == "๋คํ":
|
307 |
-
prompt += "๋๊ฒ ํผ์ณ์ง
|
308 |
elif background_style == "๊ณ๊ณก":
|
309 |
-
prompt += "
|
310 |
elif background_style == "์ด๋ ์ ์":
|
311 |
-
prompt += "
|
312 |
elif background_style == "์ฌ๋ง":
|
313 |
-
prompt += "
|
314 |
elif background_style == "๋ ํ๊ฒฝ":
|
315 |
-
prompt += "ํ์ ๋์ผ๋ก ๋ฎ์ธ
|
316 |
else:
|
317 |
-
prompt += f"{background_style} ์์ฐ
|
318 |
elif background_type == "์ค๋ด ๋ฐฐ๊ฒฝ":
|
319 |
if background_style == "๊ฑฐ์ค":
|
320 |
-
prompt += "
|
321 |
elif background_style == "์ฃผ๋ฐฉ":
|
322 |
-
prompt += "
|
323 |
elif background_style == "์์ฌ":
|
324 |
-
prompt += "
|
325 |
elif background_style == "ํ์ฅ๋":
|
326 |
-
prompt += "์ธ๋ จ๋ ํ์ฅ๋
|
327 |
elif background_style == "ํธํ
๋ก๋น":
|
328 |
-
prompt += "๊ณ ๊ธ์ค๋ฌ์ด ํธํ
๋ก๋น์ ๋๋ฆฌ์
|
329 |
elif background_style == "์นดํ":
|
330 |
-
prompt += "
|
331 |
elif background_style == "๋ฏธ๋๋ฉ ๊ณต๊ฐ":
|
332 |
-
prompt += "
|
333 |
else:
|
334 |
-
prompt += f"{background_style} ์ค๋ด
|
335 |
elif background_type == "ํน์ ๋ฐฐ๊ฒฝ":
|
336 |
if background_style == "๋์ ํ๊ฒฝ":
|
337 |
-
prompt += "ํ๋์ ์ธ ๋์
|
338 |
elif background_style == "๋ฃจํํ":
|
339 |
-
prompt += "
|
340 |
elif background_style == "ํด์๊ฐ":
|
341 |
-
prompt += "์๋ฆ๋ค์ด ํด์๊ฐ์
|
342 |
elif background_style == "๋ชจ๋ ์คํ๋์ค":
|
343 |
-
prompt += "
|
344 |
elif background_style == "๋นํฐ์ง ๊ณต๊ฐ":
|
345 |
-
prompt += "ํด๋์ํ
|
346 |
elif background_style == "๋ฏธ๋์ด์ฒ ๊ณต๊ฐ":
|
347 |
-
prompt += "์ ๊ตํ๊ฒ
|
348 |
else:
|
349 |
-
prompt += f"{background_style} ํน์
|
350 |
-
|
351 |
-
#
|
352 |
-
if lighting:
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
prompt += "๊น๋ํ๊ณ ๋ฏธ๋๋ฉํ ์กฐ๋ช
์๋์์ "
|
361 |
|
362 |
# ์ง๊ฐ ์ถ๊ฐ
|
363 |
if texture and texture != "์ ํ ์ํจ":
|
364 |
if texture == "ํฐ ๋ฒฝ":
|
365 |
-
prompt += "
|
366 |
elif texture == "๋๋ฆฌ์":
|
367 |
-
prompt += "๊ณ ๊ธ์ค๋ฌ์ด ๋๋ฆฌ์
|
368 |
elif texture == "๋๋ฌด":
|
369 |
-
prompt += "๋ฐ๋ปํ
|
370 |
elif texture == "๋ฒฝ๋":
|
371 |
-
prompt += "ํด๋์ํ ๋ฒฝ๋
|
372 |
elif texture == "ํฐ ์ฒ":
|
373 |
-
prompt += "๋ถ๋๋ฌ์ด ํฐ
|
374 |
elif texture == "์๋ฉํธ":
|
375 |
-
prompt += "๋ชจ๋ํ ์๋ฉํธ
|
376 |
|
377 |
# ์๊ฐ ์ถ๊ฐ
|
378 |
if color_tone and color_tone != "์ ํ ์ํจ":
|
379 |
if color_tone == "ํ์ดํธ ํค":
|
380 |
-
prompt += "
|
381 |
elif color_tone == "๋ธ๋ฃจ ํค":
|
382 |
-
prompt += "
|
383 |
elif color_tone == "๋ฐ๋ปํ ์์":
|
384 |
-
prompt += "
|
385 |
elif color_tone == "๋ชจ๋
ธํค":
|
386 |
-
prompt += "์ธ๋ จ๋ ๋ชจ๋
ธํค ์๊ฐ์ผ๋ก "
|
387 |
elif color_tone == "ํ์คํ
":
|
388 |
-
prompt += "
|
389 |
|
390 |
# ๋ถ์๊ธฐ ์ถ๊ฐ
|
391 |
if mood and mood != "์ ํ ์ํจ":
|
392 |
if mood == "ํฌ๊ทผํ":
|
393 |
-
prompt += "ํฌ๊ทผํ๊ณ ์๋ํ
|
394 |
elif mood == "์ฌํํ":
|
395 |
-
prompt += "์ฌํํ๊ณ ๊น๋ํ
|
396 |
elif mood == "๋ชจ๋ํ":
|
397 |
-
prompt += "
|
398 |
elif mood == "๋ด์ถ๋ด":
|
399 |
-
prompt += "์์ฐ์ค๋ฝ๊ณ ํธ์ํ
|
400 |
elif mood == "๋ฏธ๋๋ฉ":
|
401 |
-
prompt += "๋ฏธ๋๋ฉ๋ฆฌ์ฆ์ ์ ์ ๋
|
|
|
|
|
|
|
402 |
|
403 |
-
#
|
404 |
if product_category == "ํ์ฅํ":
|
405 |
-
prompt += "
|
406 |
elif product_category == "๊ฐ๋ฐฉ":
|
407 |
-
prompt += "
|
408 |
elif product_category == "์ก์ธ์๋ฆฌ":
|
409 |
-
prompt += "์ฌ์ธํ
|
410 |
elif product_category == "๋ณด์๋ฅ":
|
411 |
-
prompt += "
|
412 |
elif product_category == "ํ ๋ฐ์ฝ":
|
413 |
-
prompt += "
|
414 |
elif product_category == "์ ๋ฐ":
|
415 |
-
prompt += "
|
416 |
elif product_category == "์๋ฅ":
|
417 |
-
prompt += "
|
418 |
elif product_category == "์ฃผ๋ฐฉ์ฉํ":
|
419 |
-
prompt += "
|
420 |
elif product_category == "์ ์๊ธฐ๊ธฐ":
|
421 |
-
prompt += "
|
422 |
else:
|
423 |
-
prompt +=
|
|
|
|
|
|
|
424 |
|
425 |
return prompt
|
426 |
|
|
|
238 |
client = genai.Client(api_key=api_key)
|
239 |
|
240 |
llm_prompt = f"""
|
241 |
+
์ด์ปค๋จธ์ค ์ํ ์ด๋ฏธ์ง ๋ฐฐ๊ฒฝ ๋ณ๊ฒฝ์ ์ํ ํ๋กฌํํธ๋ฅผ ์์ฑํด์ฃผ์ธ์. ์๋ ์๋ณธ ํ๋กฌํํธ๋ฅผ ์ฐธ๊ณ ํ์ฌ, ์ํ์ด ์๋ก์ด ๋ฐฐ๊ฒฝ๊ณผ ์๋ฒฝํ๊ฒ ์์ฐ์ค๋ฝ๊ฒ ์ด์ฐ๋ฌ์ง๋ ๊ณ ํ์ง ํ๋กฌํํธ๋ฅผ ์์ฑํด์ผ ํฉ๋๋ค.
|
242 |
+
|
243 |
+
ํ์ ์๊ตฌ์ฌํญ:
|
244 |
+
1. ๋ฐ๋์ "#1"์ผ๋ก ์์ํ์ฌ ์๋ณธ ์ด๋ฏธ์ง๋ฅผ ์ฐธ์กฐํด์ผ ํฉ๋๋ค.
|
245 |
+
2. ์๋ณธ ์ ํ์ ๋ชจ๋ ํน์ฑ(์์, ์ง๊ฐ, ๋์์ธ, ๋ก๊ณ , ๋น์จ ๋ฑ)์ด 100% ๊ทธ๋๋ก ์ ์ง๋์ด์ผ ํฉ๋๋ค.
|
246 |
+
3. ์ ํ์ด ๋ฐฐ๊ฒฝ์ ์ค์ ๋ก ๋์ฌ์๋ ๋ชจ์ต์ ๋งค์ฐ ๊ตฌ์ฒด์ ์ผ๋ก ๋ฌ์ฌํด์ผ ํฉ๋๋ค.
|
247 |
+
์: "๋์ ํํํ ํ๋ฉด์ ์์ ์ ์ผ๋ก ์๋ฆฌ์ก๊ณ ์์" ๋๋ "๋ชจ๋ ์์ ๋จ๋จํ ์ ์์ผ๋ฉฐ ์ฃผ๋ณ ๋ชจ๋ ์
์๋ค์ด ์ ํ ํ๋จ๋ถ๋ฅผ ์ด์ง ๊ฐ์ธ๊ณ ์์"
|
248 |
+
4. ๋ฐฐ๊ฒฝ ํ๊ฒฝ, ์กฐ๋ช
, ์ฃผ๋ณ ์์๋ฅผ ๋งค์ฐ ๊ตฌ์ฒด์ ์ผ๋ก ์ค๋ช
ํด์ผ ํฉ๋๋ค.
|
249 |
+
5. ์ ํ๊ณผ ๋ฐฐ๊ฒฝ ์ฌ์ด์ ๋ฌผ๋ฆฌ์ ์ํธ์์ฉ(๊ทธ๋ฆผ์, ๋ฐ์ฌ, ์ฃผ๋ณ ์์์์ ๊ด๊ณ)์ ์์ธํ ๋ฌ์ฌํด์ผ ํฉ๋๋ค.
|
250 |
+
6. ์ต์ข
์ด๋ฏธ์ง๊ฐ ์ ๋ฌธ์ ์ธ ์ํ ์ฌ์ง์ฒ๋ผ ๋ณด์ด๋๋ก ์นด๋ฉ๋ผ ์ค์ , ์กฐ๋ช
ํจ๊ณผ ๋ฑ์ ํฌํจํด์ผ ํฉ๋๋ค.
|
251 |
+
7. ์ธ์์ ์ด๊ฑฐ๋ ํฉ์ฑ๋ ๋๋์ด ์๋, ์ค์ ๊ทธ ์ฅ์์์ ์ดฌ์ํ ๊ฒ์ฒ๋ผ ์์ฐ์ค๋ฌ์์ผ ํฉ๋๋ค.
|
252 |
+
|
253 |
+
์๋๋ ์ ์์ฑ๋ ํ๋กฌํํธ ์์์
๋๋ค:
|
254 |
+
|
255 |
+
์์ 1 (๊ณ๊ณก ๋ ์์ ํ์ฅํ):
|
256 |
+
"Purdell skincare tube (#1) elegantly positioned on a smooth river stone in a gentle flowing stream. Clear mountain water flowing around the base of the gray stone, creating subtle splashes and ripples. The silver packaging reflecting natural daylight, nestled securely on the flat surface of the polished stone. Background shows tranquil forest scenery with soft-focus greenery. Natural color palette with blue-green water, gray stone, and verdant surroundings complementing the silver product tube. Professional commercial photography lighting highlighting the product while maintaining its original appearance."
|
257 |
+
|
258 |
+
์์ 2 (ํด๋ณ ๋ชจ๋ ์์ ํ์ฅํ):
|
259 |
+
"Purdell Ultra HA Gel skincare tube (#1) positioned securely on pristine white beach sand. Gentle golden sand grains surrounding the base of the silver packaging, creating a stable foundation. Soft ocean waves visible in the background with turquoise water meeting clear blue sky at the horizon. Natural sunlight highlighting the metallic silver tube while casting a subtle shadow on the sand. A few delicate seashells scattered nearby, adding natural beach elements. Commercial-quality product photography maintaining the original appearance of the skincare product while presenting it in a refreshing beach setting for marketing purposes."
|
260 |
+
|
261 |
+
์์ 3 (๊ณ๊ณก ๋ฐ์ ์์ ๋ฌผ๋ณ):
|
262 |
+
"JIRV brand lavender and cream water bottles (#1) preserved exactly as shown, placed on a wide rock in a cool mountain stream. Clear creek water flowing around the rock base, surrounded by lush green trees and moss-covered stones. All product details (colors, logo, design, proportions) remain completely unchanged from the original image, only modifying the environment background. Natural sunlight filtering through tree branches gently illuminates the matte surface of the bottles. Commercial product photography that maintains all original product characteristics while only applying a natural creek background setting."
|
263 |
+
|
264 |
+
์ ์์๋ค์ฒ๋ผ ๊ตฌ์ฒด์ ์ด๊ณ ์์ธํ ํ๋กฌํํธ๋ฅผ ์์ฑํด์ฃผ์ธ์. ์ค์ํ ๊ฒ์ ์๋ณธ ์ ํ ์ด๋ฏธ์ง(#1)์ ๋ชจ๋ ๋ํ
์ผ์ ๋ณด์กดํ๋ฉด์, ๋ฐฐ๊ฒฝ๊ณผ ๋ฌผ๋ฆฌ์ ์ผ๋ก ์์ฐ์ค๋ฝ๊ฒ ์ด์ฐ๋ฌ์ง๋ ๋ชจ์ต์ ์ค๋ช
ํ๋ ๊ฒ์
๋๋ค.
|
265 |
+
|
266 |
์๋ณธ ํ๋กฌํํธ:
|
267 |
{kr_prompt}
|
268 |
|
269 |
+
์ ๋ด์ฉ์ ๋ฐํ์ผ๋ก ์ต์ข
ํ๋กฌํํธ๋ง ์์ฑํด์ฃผ์ธ์. ์ค๋ช
์ด๋ ์ถ๊ฐ ํ
์คํธ ์์ด ํ๋กฌํํธ ์์ฒด๋ง ์ถ๋ ฅํ์ธ์.
|
270 |
"""
|
271 |
|
272 |
response = client.models.generate_content(
|
|
|
277 |
temperature=0.7,
|
278 |
top_p=0.95,
|
279 |
top_k=40,
|
280 |
+
max_output_tokens=1024
|
281 |
)
|
282 |
)
|
283 |
|
|
|
301 |
logger.exception("LLM 2์ฐจ ํ๋กฌํํธ ์์ฑ ์ค ์ค๋ฅ ๋ฐ์:")
|
302 |
return f"#1 {kr_prompt}"
|
303 |
|
|
|
304 |
def generate_llm_prompt(product_name, product_category, background_type, background_style, lighting, texture, color_tone, mood):
|
305 |
+
"""
|
306 |
+
์ฌ์ฉ์ ์ ํ์ ๊ธฐ๋ฐ์ผ๋ก ์์ธํ ์ํ ์ด๋ฏธ์ง ํ๋กฌํํธ ์์ฑ
|
307 |
+
"""
|
308 |
+
# ์ํ๋ช
ํ์ธ ๋ฐ ๊ธฐ๋ณธ๊ฐ ์ค์
|
309 |
+
product_display = product_name if product_name and product_name.strip() else "์ ํ"
|
310 |
|
311 |
+
# ๊ธฐ๋ณธ ํ๋กฌํํธ ํ
ํ๋ฆฟ ์์
|
312 |
+
prompt = f"#1 {product_display} "
|
313 |
+
|
314 |
+
# ์ ํ๊ตฐ๋ณ ์ค๋ช
์ถ๊ฐ
|
315 |
+
if product_category == "ํ์ฅํ":
|
316 |
+
prompt += f"ํ์ฅํ ํ๋ธ๊ฐ "
|
317 |
+
elif product_category == "๊ฐ๋ฐฉ":
|
318 |
+
prompt += f"๊ฐ๋ฐฉ์ด "
|
319 |
+
elif product_category == "์ก์ธ์๋ฆฌ":
|
320 |
+
prompt += f"์ก์ธ์๋ฆฌ๊ฐ "
|
321 |
+
elif product_category == "๋ณด์๋ฅ":
|
322 |
+
prompt += f"๋ณด์ ์ ํ์ด "
|
323 |
+
elif product_category == "ํ ๋ฐ์ฝ":
|
324 |
+
prompt += f"ํ ๋ฐ์ฝ ์ ํ์ด "
|
325 |
+
elif product_category == "์ ๋ฐ":
|
326 |
+
prompt += f"์ ๋ฐ์ด "
|
327 |
+
elif product_category == "์๋ฅ":
|
328 |
+
prompt += f"์๋ฅ ์ ํ์ด "
|
329 |
+
elif product_category == "์ฃผ๋ฐฉ์ฉํ":
|
330 |
+
prompt += f"์ฃผ๋ฐฉ์ฉํ์ด "
|
331 |
+
elif product_category == "์ ์๊ธฐ๊ธฐ":
|
332 |
+
prompt += f"์ ์๊ธฐ๊ธฐ๊ฐ "
|
333 |
+
else:
|
334 |
+
prompt += f"์ ํ์ด "
|
335 |
+
|
336 |
+
# ๋ฐฐ๊ฒฝ ์ ํ ๋ฐ ์ธ๋ถ ์คํ์ผ์ ๋ฐ๋ฅธ ๋ฐฐ์น ์ค๋ช
์ถ๊ฐ
|
337 |
if background_type == "์์ฐ ๋ฐฐ๊ฒฝ":
|
338 |
if background_style == "์ฒ":
|
339 |
+
prompt += "ํธ๋ฅธ ์ฒ์ ํ๊ฒฝ์ ์์ฐ์ค๋ฌ์ด ๋ฐ์๋ ๊ทธ๋ฃจํฐ๊ธฐ ์์ ์์ ์ ์ผ๋ก ๋์ฌ ์์ต๋๋ค. ์ฃผ๋ณ์๋ ์ ๋ช
ํ ๋
น์ ์์ฌ๊ท๋ค๊ณผ ๋ถ๋๋ฌ์ด ์ด๋ผ๊ฐ ๋ณด์ด๋ฉฐ, "
|
340 |
elif background_style == "ํด๋ณ":
|
341 |
+
prompt += "๊นจ๋ํ ๋ฐฑ์ฌ์ฅ ์์ ๋จ๋จํ ์๋ฆฌ์ก๊ณ ์์ต๋๋ค. ์ฃผ๋ณ ๋ชจ๋ ์
์๋ค์ด ์ ํ ํ๋จ๋ถ๋ฅผ ์ด์ง ๊ฐ์ธ๊ณ ์์ผ๋ฉฐ, ๋ฐฐ๊ฒฝ์๋ ์ฒญ๋ก์ ๋ฐ๋ค์ ๋ง์ ํ๋์ด ๋ณด์
๋๋ค. "
|
342 |
elif background_style == "์ฐ":
|
343 |
+
prompt += "์
์ฅํ ์ฐ์ ์ ์์ ์๋ ๋ฐ์ ์์ ์์ ์ ์ผ๋ก ๋์ฌ ์์ต๋๋ค. ์ฃผ๋ณ์ผ๋ก ํ ํธ์ธ ์ฐ์
ํ๊ฒฝ๊ณผ ํธ๋ฅธ ํ๋์ด ํผ์ณ์ง๋ฉฐ, "
|
344 |
elif background_style == "๋คํ":
|
345 |
+
prompt += "๋๊ฒ ํผ์ณ์ง ์ผ์ํ ๋คํ ๊ฐ์ด๋ฐ ํํํ ๋ ์์ ์๋ฆฌ์ก๊ณ ์์ต๋๋ค. ์ฃผ๋ณ์๋ ๋ค์ํ ์์์ ์ผ์ํ๋ค์ด ๋ถ๋๋ฝ๊ฒ ํ๋ค๋ฆฌ๋ฉฐ, "
|
346 |
elif background_style == "๊ณ๊ณก":
|
347 |
+
prompt += "๋ง์ ๊ณ๊ณก๋ฌผ์ด ํ๋ฅด๋ ๊ณณ์ ๋งค๋๋ฌ์ด ๋ฐ์ ์์ ์์ ์ ์ผ๋ก ๋์ฌ ์์ต๋๋ค. ๋ฐ์ ์ฃผ๋ณ์ผ๋ก ํฌ๋ช
ํ ๋ฌผ์ด ๋ถ๋๋ฝ๊ฒ ํ๋ฅด๋ฉฐ ์์ ๋ฌผ๋ฐฉ์ธ๋ค์ด ๋ฐ์ง์ด๊ณ , "
|
348 |
elif background_style == "์ด๋ ์ ์":
|
349 |
+
prompt += "ํ๋ คํ ์ด๋ ์๋ฌผ๋ค๋ก ๋๋ฌ์ธ์ธ ๊ณต๊ฐ์ ํํํ ๋ ์์ ๋์ฌ ์์ต๋๋ค. ์ฃผ๋ณ์๋ ์ ๋ช
ํ ๋
น์ ์๊ณผ ํ๋ คํ ๊ฝ๋ค์ด ํ๋ถํ๊ฒ ์๋ผ๊ณ ์์ผ๋ฉฐ, "
|
350 |
elif background_style == "์ฌ๋ง":
|
351 |
+
prompt += "ํฉ๊ธ๋น ์ฌ๋ง ๋ชจ๋ ์์ ์์ ์ ์ผ๋ก ์๋ฆฌ์ก๊ณ ์์ต๋๋ค. ๋ถ๋๋ฌ์ด ๋ชจ๋ ๋ฌผ๊ฒฐ๊ณผ ์ฌ๋ง ํน์ ์ ๊ณ ์ํจ์ด ๋ฐฐ๊ฒฝ์ ๋ํ๋๋ฉฐ, "
|
352 |
elif background_style == "๋ ํ๊ฒฝ":
|
353 |
+
prompt += "ํ์ ๋์ผ๋ก ๋ฎ์ธ ํ๊ฒฝ ์ ์ผ์์ฒ๋ผ ๋ง์ ๋ฐ์ ์์ ๋์ฌ ์์ต๋๋ค. ์ฃผ๋ณ์ ๋ ๊ฒฐ์ ์ฒด๊ฐ ๋ฐ์ง์ด๊ณ ์ฐจ๊ฐ์ด ๊ฒจ์ธ ๋ถ์๊ธฐ๊ฐ ๋๊ปด์ง๋ฉฐ, "
|
354 |
else:
|
355 |
+
prompt += f"{background_style} ์์ฐ ๋ฐฐ๊ฒฝ์ ์ ์ ํ ํ๋ฉด ์์ ์์ ์ ์ผ๋ก ๋์ฌ ์์ต๋๋ค. "
|
356 |
elif background_type == "์ค๋ด ๋ฐฐ๊ฒฝ":
|
357 |
if background_style == "๊ฑฐ์ค":
|
358 |
+
prompt += "์ธ๋ จ๋ ๊ฑฐ์ค ๊ณต๊ฐ์ ์ฐ์ํ ์ปคํผ ํ
์ด๋ธ ์์ ์๋ฒฝํ๊ฒ ๋ฐฐ์น๋์ด ์์ต๋๋ค. ํ๋์ ์ธ ๊ฐ๊ตฌ์ ์๋ํ ์ํ ๊ณต๊ฐ์ด ๋ฐฐ๊ฒฝ์ผ๋ก ๋ณด์ด๋ฉฐ, "
|
359 |
elif background_style == "์ฃผ๋ฐฉ":
|
360 |
+
prompt += "๋ชจ๋ํ ์ฃผ๋ฐฉ ์นด์ดํฐ ์์ ๊น๋ํ๊ฒ ๋์ฌ ์์ต๋๋ค. ์ฃผ๋ณ์๋ ์ ๋๋ ์ฃผ๋ฐฉ ์ฉํ๋ค๊ณผ ์ธ๋ จ๋ ์ฃผ๋ฐฉ ์ธํ
๋ฆฌ์ด๊ฐ ๋ณด์ด๋ฉฐ, "
|
361 |
elif background_style == "์์ฌ":
|
362 |
+
prompt += "๊ณ ๊ธ์ค๋ฌ์ด ๋ชฉ์ฌ ์ฑ
์์ด๋ ์ฑ
์ฅ ์์ ์์ ์ ์ผ๋ก ์๋ฆฌ์ก๊ณ ์์ต๋๋ค. ์ฃผ๋ณ์๋ ์ฑ
๊ณผ ์ง์ ์ธ ๋ถ์๊ธฐ๋ฅผ ํ๊ธฐ๋ ์ํ๋ค์ด ๋ณด์ด๋ฉฐ, "
|
363 |
elif background_style == "ํ์ฅ๋":
|
364 |
+
prompt += "์ฐ์ํ ํ์ฅ๋ ์์ ๋ค๋ฅธ ํ์ฅํ๋ค๊ณผ ํจ๊ป ์กฐํ๋กญ๊ฒ ๋ฐฐ์น๋์ด ์์ต๋๋ค. ์ธ๋ จ๋ ๊ฑฐ์ธ๊ณผ ํ์ฅ๋ ์ํ๋ค์ด ๋ฐฐ๊ฒฝ์ผ๋ก ๋ณด์ด๋ฉฐ, "
|
365 |
elif background_style == "ํธํ
๋ก๋น":
|
366 |
+
prompt += "๊ณ ๊ธ์ค๋ฌ์ด ํธํ
๋ก๋น์ ๋๋ฆฌ์ ํ
์ด๋ธ์ด๋ ์นด์ดํฐ ์์ ์ฐ์ํ๊ฒ ๋์ฌ ์์ต๋๋ค. ๊ณ ๊ธ์ค๋ฌ์ด ์ธํ
๋ฆฌ์ด์, ๊ณต๊ฐ์ ๋๊ณ ์พ์ ํ ๋๋์ด ๋ฐฐ๊ฒฝ์ ๋ํ๋๋ฉฐ, "
|
367 |
elif background_style == "์นดํ":
|
368 |
+
prompt += "๋ถ์๊ธฐ ์๋ ์นดํ ํ
์ด๋ธ ์์ ์๋ฒฝํ๊ฒ ๋ฐฐ์น๋์ด ์์ต๋๋ค. ๋ฐ๋ปํ ์นดํ ๋ถ์๊ธฐ์ ์๋ํ ๊ณต๊ฐ๊ฐ์ด ๋ฐฐ๊ฒฝ์ผ๋ก ํผ์ณ์ง๋ฉฐ, "
|
369 |
elif background_style == "๋ฏธ๋๋ฉ ๊ณต๊ฐ":
|
370 |
+
prompt += "๊น๋ํ ๋ฏธ๋๋ฉ ๊ณต๊ฐ์ ๋จ์ํ ํ๋ฉด ์์ ๋์ฌ ์์ต๋๋ค. ๋ถํ์ํ ์์ ์์ด ๊นจ๋ํ๊ณ ์ ์ ๋ ๋ฐฐ๊ฒฝ์ด ์ ํ์ ๋๋ณด์ด๊ฒ ํ๋ฉฐ, "
|
371 |
else:
|
372 |
+
prompt += f"{background_style} ์ค๋ด ๊ณต๊ฐ์ ์ ์ ํ ํ๋ฉด ์์ ์์ ์ ์ผ๋ก ๋์ฌ ์์ต๋๋ค. "
|
373 |
elif background_type == "ํน์ ๋ฐฐ๊ฒฝ":
|
374 |
if background_style == "๋์ ํ๊ฒฝ":
|
375 |
+
prompt += "ํ๋์ ์ธ ๋์ ํ๊ฒฝ์ ๋ฐฐ๊ฒฝ์ผ๋ก ๋์์ ๋ฒค์น๋ ์ฝํฌ๋ฆฌํธ ๊ตฌ์กฐ๋ฌผ ์์ ๋์ฌ ์์ต๋๋ค. ๋์์ ํ๊ธฐ์ฐฌ ๋ถ์๊ธฐ์ ๊ฑด๋ฌผ๋ค์ด ๋ฐฐ๊ฒฝ์ผ๋ก ๋ณด์ด๋ฉฐ, "
|
376 |
elif background_style == "๋ฃจํํ":
|
377 |
+
prompt += "๋์๊ฐ ๋ด๋ ค๋ค๋ณด์ด๋ ๋ฃจํํ ํ
์ด๋ธ์ด๋ ๋๊ฐ ์์ ์์ ์ ์ผ๋ก ์๋ฆฌ์ก๊ณ ์์ต๋๋ค. ํ ํธ์ธ ๋์ ์ ๋ง๊ณผ ํ๋์ด ๋ฐฐ๊ฒฝ์ผ๋ก ํผ์ณ์ง๋ฉฐ, "
|
378 |
elif background_style == "ํด์๊ฐ":
|
379 |
+
prompt += "์๋ฆ๋ค์ด ํด์๊ฐ์ ๋ฐ์๋ ๋ถ๋ ์์ ๋์ฌ ์์ต๋๋ค. ๋๋ถ์ ๋ฐ๋ค ์ ๋ง๊ณผ ํด์์ ์ด ๋ฐฐ๊ฒฝ์ผ๋ก ํผ์ณ์ง๋ฉฐ, "
|
380 |
elif background_style == "๋ชจ๋ ์คํ๋์ค":
|
381 |
+
prompt += "์ ๋ฌธ์ ์ธ ์ ํ ์ดฌ์ ์คํ๋์ค์ ์ธํธ ์์ ์๋ฒฝํ๊ฒ ๋ฐฐ์น๋์ด ์์ต๋๋ค. ์ธ๋ จ๋ ์คํ๋์ค ๋ฐฐ๊ฒฝ๊ณผ ์ ๋ฌธ์ ์ธ ์กฐ๋ช
์ค์ ์ด ์ ํ์ ๋๋ณด์ด๊ฒ ํ๋ฉฐ, "
|
382 |
elif background_style == "๋นํฐ์ง ๊ณต๊ฐ":
|
383 |
+
prompt += "ํด๋์ํ ๋นํฐ์ง ๊ฐ๊ตฌ๋ ์คํฑ ํ
์ด๋ธ ์์ ๋ฉ์ค๋ฝ๊ฒ ๋์ฌ ์์ต๋๋ค. ์ค๋๋ ๋๋ฌด ํ๋ฉด์ ์ง๊ฐ๊ณผ ๋นํฐ์ง ์ํ๋ค์ด ๋ฐฐ๊ฒฝ์ ๋ํ๋๋ฉฐ, "
|
384 |
elif background_style == "๋ฏธ๋์ด์ฒ ๊ณต๊ฐ":
|
385 |
+
prompt += "์ ๊ตํ๊ฒ ์ ์๋ ๋ฏธ๋์ด์ฒ ์ธํธ ์์ ์์ ์ธ๊ณ์ ์ผ๋ถ์ฒ๋ผ ๋ฐฐ์น๋์ด ์์ต๋๋ค. ์ฌ์ธํ ๋ฏธ๋์ด์ฒ ์์๋ค๊ณผ ์ฐฝ์์ ์ธ ์ํ๋ค์ด ์ฃผ๋ณ์ ๋ณด์ด๋ฉฐ, "
|
386 |
else:
|
387 |
+
prompt += f"{background_style} ํน์ ๋ฐฐ๊ฒฝ์ ์ ์ ํ ํ๋ฉด ์์ ์์ ์ ์ผ๋ก ๋์ฌ ์์ต๋๋ค. "
|
388 |
+
|
389 |
+
# ์กฐ๋ช
ํจ๊ณผ ์ถ๊ฐ
|
390 |
+
if lighting == "์์ฐ๊ด":
|
391 |
+
prompt += "์์ฐ์ค๋ฌ์ด ํ๋น์ด ์ ํ์ ๋ถ๋๋ฝ๊ฒ ๋น์ถฐ ์์ํ ๋ฐ์ฌ๊ด๊ณผ ์์ฐ์ค๋ฌ์ด ๊ทธ๋ฆผ์๋ฅผ ๋ง๋ค๊ณ ์์ต๋๋ค. "
|
392 |
+
elif lighting == "๋ฐ๋ปํ ์กฐ๋ช
":
|
393 |
+
prompt += "๋ฐ๋ปํ ํฉ๊ธ๋น ์กฐ๋ช
์ด ์ ํ ํ๋ฉด์ ๋ถ๋๋ฝ๊ฒ ๋ฟ์ ์๋ํ๊ณ ํธ์ํ ๋ถ์๊ธฐ๋ฅผ ์ฐ์ถํ๊ณ ์์ต๋๋ค. "
|
394 |
+
elif lighting == "๊ทธ๋ฆผ์ ์๋ ์กฐ๋ช
":
|
395 |
+
prompt += "๋๋ผ๋งํฑํ ์กฐ๋ช
์ด ์ ํ์ ๊ฐํ ํ์ด๋ผ์ดํธ์ ์ ๋ช
ํ ๊ทธ๋ฆผ์๋ฅผ ๋ง๋ค์ด ๊น์ด๊ฐ๊ณผ ์
์ฒด๊ฐ์ ๊ฐ์กฐํ๊ณ ์์ต๋๋ค. "
|
396 |
+
elif lighting == "๋ฏธ๋๋ฉ ์กฐ๋ช
":
|
397 |
+
prompt += "๊น๋ํ๊ณ ์ ์ ๋ ์กฐ๋ช
์ด ์ ํ์ ๊ท ์ผํ๊ฒ ๋น์ถฐ ์ฌํํ๊ณ ๋ชจ๋ํ ๋๋์ ๋ง๋ค์ด๋ด๊ณ ์์ต๋๋ค. "
|
|
|
398 |
|
399 |
# ์ง๊ฐ ์ถ๊ฐ
|
400 |
if texture and texture != "์ ํ ์ํจ":
|
401 |
if texture == "ํฐ ๋ฒฝ":
|
402 |
+
prompt += "๋ฐฐ๊ฒฝ์ ๊นจ๋ํ ํฐ ๋ฒฝ์ ์ ํ์ ๋์ฑ ๋๋ณด์ด๊ฒ ํ๋ฉฐ, ์ ํ์ ์์๊ณผ ํ
์ค์ฒ๊ฐ ์ ๋ช
ํ๊ฒ ํํ๋ฉ๋๋ค. "
|
403 |
elif texture == "๋๋ฆฌ์":
|
404 |
+
prompt += "๊ณ ๊ธ์ค๋ฌ์ด ๋๋ฆฌ์ ์ง๊ฐ์ ํ๋ฉด์ด ์ ํ๊ณผ ์๋ฒฝํ ์กฐํ๋ฅผ ์ด๋ฃจ๋ฉฐ, ๋๋ฆฌ์์ ์์ฐ์ค๋ฌ์ด ํจํด์ด ์ธ๋ จ๋ ๋ถ์๊ธฐ๋ฅผ ๋ํฉ๋๋ค. "
|
405 |
elif texture == "๋๋ฌด":
|
406 |
+
prompt += "๋ฐ๋ปํ ๋๋ฌด ์ง๊ฐ์ ํ๋ฉด์ด ์ ํ์ ์์ฐ์ค๋ฌ์ด ๋๋์ ๋ํ๋ฉฐ, ๋๋ฌด์ ๊ฒฐ์ด ์ ํ๊ณผ ์กฐํ๋กญ๊ฒ ์ด์ฐ๋ฌ์ง๋๋ค. "
|
407 |
elif texture == "๋ฒฝ๋":
|
408 |
+
prompt += "ํด๋์ํ ๋ฒฝ๋ ๋ฐฐ๊ฒฝ์ ์ง๊ฐ์ด ์ ํ์ ๋
ํนํ ๋ถ์๊ธฐ๋ฅผ ๋ํ๋ฉฐ, ๋ฒฝ๋์ ํฌ๋ฐํ ๋๋๊ณผ ์ ํ์ ์ธ๋ จ๋ ์ธ๊ด์ด ํฅ๋ฏธ๋ก์ด ๋๋น๋ฅผ ์ด๋ฃน๋๋ค. "
|
409 |
elif texture == "ํฐ ์ฒ":
|
410 |
+
prompt += "๋ถ๋๋ฌ์ด ํฐ ์ฒ์ด ๊น๋ฆฐ ํ๋ฉด ์์ ์ ํ์ด ๋์ฌ์์ด ๋ถ๋๋ฝ๊ณ ๊นจ๋ํ ๋๋์ ๊ฐ์กฐํฉ๋๋ค. "
|
411 |
elif texture == "์๋ฉํธ":
|
412 |
+
prompt += "๋ชจ๋ํ ์๋ฉํธ ์ง๊ฐ์ ํ๋ฉด์ด, ๋์์ ์ด๊ณ ํ๋์ ์ธ ๋ถ์๊ธฐ๋ฅผ ์ฐ์ถํ๋ฉฐ ์ ํ๊ณผ ๋ฏธ๋๋ฉํ ์กฐํ๋ฅผ ์ด๋ฃน๋๋ค. "
|
413 |
|
414 |
# ์๊ฐ ์ถ๊ฐ
|
415 |
if color_tone and color_tone != "์ ํ ์ํจ":
|
416 |
if color_tone == "ํ์ดํธ ํค":
|
417 |
+
prompt += "์ ์ฒด์ ์ผ๋ก ๊นจ๋ํ๊ณ ์์ํ ํ์ดํธ ํค์ ์๊ฐ์ด ์ ํ์ ์ธ๋ จ๋ฏธ๋ฅผ ๋ถ๊ฐ์ํค๊ณ ์์ต๋๋ค. "
|
418 |
elif color_tone == "๋ธ๋ฃจ ํค":
|
419 |
+
prompt += "์์ํ๊ณ ์ฐจ๋ถํ ๋ธ๋ฃจ ํค์ ์๊ฐ์ด ์ ์ฒด์ ์ธ ์ด๋ฏธ์ง์ ํ์จํจ๊ณผ ์ ๋ขฐ๊ฐ์ ๋ํ๊ณ ์์ต๋๋ค. "
|
420 |
elif color_tone == "๋ฐ๋ปํ ์์":
|
421 |
+
prompt += "๋ฐ๋ปํ๊ณ ํฌ๊ทผํ ์์ ํค์ด ์ ์ฒด ์ด๋ฏธ์ง์ ์๋ํ๊ณ ํธ์ํ ๋ถ์๊ธฐ๋ฅผ ๋ง๋ค์ด๋
๋๋ค. "
|
422 |
elif color_tone == "๋ชจ๋
ธํค":
|
423 |
+
prompt += "์ธ๋ จ๋ ๋ชจ๋
ธํค ์๊ฐ์ผ๋ก ์ ์ ๋ ๋ฏธ๋๋ฉํ ๋ถ์๊ธฐ๋ฅผ ์ฐ์ถํ๋ฉฐ ์ ํ์ ํํ์ ์ง์คํ ์ ์๊ฒ ํฉ๋๋ค. "
|
424 |
elif color_tone == "ํ์คํ
":
|
425 |
+
prompt += "๋ถ๋๋ฝ๊ณ ์์ํ ํ์คํ
ํค์ด ์ ์ฒด์ ์ธ ์ด๋ฏธ์ง์ ๊ฐ์ฑ์ ์ด๊ณ ๋ถ๋๋ฌ์ด ๋๋์ ๋ํฉ๋๋ค. "
|
426 |
|
427 |
# ๋ถ์๊ธฐ ์ถ๊ฐ
|
428 |
if mood and mood != "์ ํ ์ํจ":
|
429 |
if mood == "ํฌ๊ทผํ":
|
430 |
+
prompt += "์ ์ฒด์ ์ผ๋ก ํฌ๊ทผํ๊ณ ์๋ํ ๋ถ์๊ธฐ๊ฐ ๋๊ปด์ง๋ฉฐ, ํธ์ํ๊ณ ๋ฐ๋ปํ ๊ฐ์ฑ์ ๋ถ๋ฌ์ผ์ผํต๋๋ค. "
|
431 |
elif mood == "์ฌํํ":
|
432 |
+
prompt += "์ ์ฒด์ ์ผ๋ก ์ฌํํ๊ณ ๊น๋ํ ๋ถ์๊ธฐ๋ก, ๋ถํ์ํ ์์ ์์ด ์ ํ ์์ฒด์ ์ง์คํ ์ ์์ต๋๋ค. "
|
433 |
elif mood == "๋ชจ๋ํ":
|
434 |
+
prompt += "ํ๋์ ์ด๊ณ ์ธ๋ จ๋ ๋ถ์๊ธฐ๊ฐ ์ ์ฒด ์ด๋ฏธ์ง์ ์คํ์ผ๋ฆฌ์ํ ๋๋์ ๋ํ๊ณ ์์ต๋๋ค. "
|
435 |
elif mood == "๋ด์ถ๋ด":
|
436 |
+
prompt += "์์ฐ์ค๋ฝ๊ณ ํธ์ํ ๋ถ์๊ธฐ๋ก, ์ธ์์ ์ธ ์์ ์์ด ์ ํ์ด ํ๊ฒฝ๊ณผ ์์ฐ์ค๋ฝ๊ฒ ์กฐํ๋ฅผ ์ด๋ฃน๋๋ค. "
|
437 |
elif mood == "๋ฏธ๋๋ฉ":
|
438 |
+
prompt += "๋ฏธ๋๋ฉ๋ฆฌ์ฆ์ ์ ์ ๋ ๋ถ์๊ธฐ๊ฐ ๋๋ณด์ด๋ฉฐ, ๋จ์ํจ ์์ ์๋ฆ๋ค์์ ๊ฐ์กฐํฉ๋๋ค. "
|
439 |
+
|
440 |
+
# ๋ง๋ฌด๋ฆฌ - ์ ํ ํน์ฑ ๋ณด์กด ๋ฐ ์ ๋ฌธ์ ์ธ ์ฌ์ง ํ์ง ๊ฐ์กฐ
|
441 |
+
prompt += f"์๋ณธ ์ด๋ฏธ์ง์ {product_display} ์ ํ ์์ฒด๋ ์์, ์ง๊ฐ, ๋์์ธ, ๋ก๊ณ , ํ
์คํธ, ๋ฐ์ฌ๊ด ๋ฑ ๋ชจ๋ ๋ํ
์ผ์ด 100% ๊ทธ๋๋ก ๋ณด์กด๋์ด ์์ต๋๋ค. "
|
442 |
|
443 |
+
# ์ ํ๊ตฐ๋ณ ์ถ๊ฐ ์ค๋ช
|
444 |
if product_category == "ํ์ฅํ":
|
445 |
+
prompt += "์ ํ ํ๋ฉด์ ๊ดํ๊ณผ ๋ก๊ณ ์ ๋ํ
์ผ, ํจํค์ง์ ๋ชจ๋ ํน์ฑ์ด ์๋ฒฝํ๊ฒ ์ ์ง๋ ์ฑ ์์ฐ์ค๋ฝ๊ฒ ๋ฐฐ๊ฒฝ๊ณผ ์ด์ฐ๋ฌ์ ธ ์์ต๋๋ค. "
|
446 |
elif product_category == "๊ฐ๋ฐฉ":
|
447 |
+
prompt += "๊ฐ๋ฐฉ์ ์์ฌ ์ง๊ฐ, ์์, ๋์์ธ ์์, ๋ก๊ณ , ๋ฒํด ๋ฑ์ ๋ชจ๋ ๋ํ
์ผ์ด ๊ทธ๋๋ก ์ ์ง๋๋ฉฐ, ์์ฐ์ค๋ฝ๊ฒ ๋ฐฐ๊ฒฝ๊ณผ ์กฐํ๋ฅผ ์ด๋ฃน๋๋ค. "
|
448 |
elif product_category == "์ก์ธ์๋ฆฌ":
|
449 |
+
prompt += "์ก์ธ์๋ฆฌ์ ์ฌ์ธํ ๋ํ
์ผ, ๊ดํ, ๋ณด์, ๊ธ์์ ์ง๊ฐ ๋ฑ์ด ๋ชจ๋ ๊ทธ๋๋ก ๋ณด์กด๋๋ฉด์ ์ฃผ๋ณ ํ๊ฒฝ๊ณผ ์์ฐ์ค๋ฝ๊ฒ ์ด์ฐ๋ฌ์ง๋๋ค. "
|
450 |
elif product_category == "๋ณด์๋ฅ":
|
451 |
+
prompt += "๋ณด์์ ๋ฐ์ง์, ์ปทํ
, ๊ด์ฑ, ์ธํ
๋ฑ์ ๋ชจ๋ ์ฌ์ธํ ๋ํ
์ผ์ด ์๋ฒฝํ๊ฒ ๋ณด์กด๋๋ฉด์ ๋ฐฐ๊ฒฝ๊ณผ ๊ณ ๊ธ์ค๋ฌ์ด ์กฐํ๋ฅผ ์ด๋ฃน๋๋ค. "
|
452 |
elif product_category == "ํ ๋ฐ์ฝ":
|
453 |
+
prompt += "ํ ๋ฐ์ฝ ์ ํ์ ๋์์ธ ์์, ์ง๊ฐ, ๋ฌด๋ฌ, ์์ ๋ฑ ๋ชจ๋ ํน์ฑ์ด ๊ทธ๋๋ก ์ ์ง๋๋ฉด์ ์ฃผ๋ณ ํ๊ฒฝ๊ณผ ์์ฐ์ค๋ฝ๊ฒ ์ด์ฐ๋ฌ์ง๋๋ค. "
|
454 |
elif product_category == "์ ๋ฐ":
|
455 |
+
prompt += "์ ๋ฐ์ ์์ฌ, ๋์์ธ ๋ผ์ธ, ํ
์ค์ฒ, ๋ก๊ณ , ๋ํ
์ผ ๋ฑ์ด ์๋ฒฝํ๊ฒ ๋ณด์กด๋๋ฉด์ ์์ฐ์ค๋ฝ๊ฒ ๋ฐฐ๊ฒฝ๊ณผ ์กฐํ๋ฅผ ์ด๋ฃน๋๋ค. "
|
456 |
elif product_category == "์๋ฅ":
|
457 |
+
prompt += "์๋ฅ ์ ํ์ ์๋จ ์ง๊ฐ, ์์, ํจํด, ๋ด์ ์ , ๋ก๊ณ ๋ฑ์ ๋ชจ๋ ๋ํ
์ผ์ด ๊ทธ๋๋ก ์ ์ง๋๋ฉด์ ์ฃผ๋ณ ํ๊ฒฝ๊ณผ ๋ฉ์ค๋ฝ๊ฒ ์ด์ฐ๋ฌ์ง๋๋ค. "
|
458 |
elif product_category == "์ฃผ๋ฐฉ์ฉํ":
|
459 |
+
prompt += "์ฃผ๋ฐฉ์ฉํ์ ์ฌ์ง๊ฐ, ๋์์ธ ์์, ๊ธฐ๋ฅ์ ๋ํ
์ผ ๋ฑ์ด ๋ชจ๋ ๊ทธ๋๋ก ๋ณด์กด๋๋ฉด์ ๋ฐฐ๊ฒฝ๊ณผ ์ค์ฉ์ ์ด๋ฉด์๋ ๋ฏธ์ ์ธ ์กฐํ๋ฅผ ์ด๋ฃน๋๋ค. "
|
460 |
elif product_category == "์ ์๊ธฐ๊ธฐ":
|
461 |
+
prompt += "์ ์๊ธฐ๊ธฐ์ ๋์คํ๋ ์ด, ๋ฒํผ, ํฌํธ, ๋ก๊ณ , ํ๋ฉด ์ง๊ฐ ๋ฑ ๋ชจ๋ ๋ํ
์ผ์ด ์๋ฒฝํ๊ฒ ์ ์ง๋๋ฉด์ ์ฃผ๋ณ ํ๊ฒฝ๊ณผ ํ๋์ ์ธ ์กฐํ๋ฅผ ์ด๋ฃน๋๋ค. "
|
462 |
else:
|
463 |
+
prompt += "์ ํ์ ๋ชจ๋ ๋ํ
์ผ๊ณผ ํน์ฑ์ด ๊ทธ๋๋ก ์ ์ง๋๋ฉด์ ์ฃผ๋ณ ํ๊ฒฝ๊ณผ ์์ฐ์ค๋ฝ๊ฒ ์ด์ฐ๋ฌ์ ธ ์์ต๋๋ค. "
|
464 |
+
|
465 |
+
# ์ ๋ฌธ์ ์ธ ์ฌ์ง ํ์ง ์ค๋ช
์ถ๊ฐ
|
466 |
+
prompt += "์ ๋ฌธ ์์
์ ํ ์ฌ์ง ํ์ง์ ๊ฐ์ถ ์ด๋ฏธ์ง๋ก, 8K ํด์๋, ์๋ฒฝํ ์กฐ๋ช
, ์ ํํ ์๊ฐ ์ฌํ, ๊ทธ๋ฆฌ๊ณ ์ธ๋ จ๋ ๊ตฌ๋๋ก ์ ํ์ ๊ฐ์กฐํฉ๋๋ค. ์นด๋ฉ๋ผ ์ด์ ์ ์ ํ์ ๋ง์ถฐ์ ธ ์์ผ๋ฉฐ, ๋ฐฐ๊ฒฝ์ ์ ์ ํ ์ฌ๋๋ก ์์ฐ์ค๋ฝ๊ฒ ๋ธ๋ฌ ์ฒ๋ฆฌ๋์ด ์ ํ์ด ์ฃผ์ธ๊ณต์ผ๋ก ๋๋ณด์
๋๋ค."
|
467 |
|
468 |
return prompt
|
469 |
|