ginipick commited on
Commit
44cc2fa
ยท
verified ยท
1 Parent(s): 0d4dea0

Update pages/api/gemini.js

Browse files
Files changed (1) hide show
  1. pages/api/gemini.js +1 -1
pages/api/gemini.js CHANGED
@@ -31,7 +31,7 @@ export default async function handler(req, res) {
31
  const model = genAI.getGenerativeModel({ model: "gemini-2.0-flash" });
32
 
33
  // Use the custom prompt if provided, otherwise use the default
34
- const promptText = prompt || "Look at this image and identify the main object or scene (ignoring any hands or fingers that might be visible). Generate a single, short, insightful thought (maximum 5 words) about this object or scene. Focus on something interesting, fun, or unexpected about it. DO NOT mention hands, fingers, pose estimation, motion tracking, or any computer vision technology in your response. Respond with just the thought, no additional text.";
35
 
36
  // Prepare the image part for the model
37
  const imagePart = {
 
31
  const model = genAI.getGenerativeModel({ model: "gemini-2.0-flash" });
32
 
33
  // Use the custom prompt if provided, otherwise use the default
34
+ const promptText = prompt || "์ด ์ด๋ฏธ์ง€๋ฅผ ๋ณด๊ณ  ๋ณด์ผ ์ˆ˜๋„ ์žˆ๋Š” ์†์ด๋‚˜ ์†๊ฐ€๋ฝ์€ ๋ฌด์‹œํ•˜๊ณ  ํ”Œ๋ ˆ์ด์ž‰ ์นด๋“œ๋ฅผ ์ธ์‹ํ•˜์—ฌ ์‹๋ณ„ํ•˜์„ธ์š”. ์‹๋ณ„๋œ ์นด๋“œ ์ •๋ณด๋งŒ ์˜์–ด๋กœ ์ถœ๋ ฅํ•˜์„ธ์š”. ํ˜•์‹์€ 'A Hearts', '10 Diamonds'์ฒ˜๋Ÿผ ์นด๋“œ ๊ฐ’๊ณผ ๋ฌด๋Šฌ๋ฅผ ๊ณต๋ฐฑ์œผ๋กœ ๊ตฌ๋ถ„ํ•ด ํ‘œ๊ธฐํ•˜๋ฉฐ, ์—ฌ๋Ÿฌ ์žฅ์ด๋ฉด ์‰ผํ‘œ๋กœ ๊ตฌ๋ถ„ํ•˜์„ธ์š”. ์ถ”๊ฐ€ ์„ค๋ช…์ด๋‚˜ ๋‹ค๋ฅธ ํ…์ŠคํŠธ๋Š” ์ ˆ๋Œ€ ํฌํ•จํ•˜์ง€ ๋งˆ์„ธ์š”.";
35
 
36
  // Prepare the image part for the model
37
  const imagePart = {