Skip to content

Commit

Permalink
Merge pull request #76 from MemorAIzee/feature/#75-photo
Browse files Browse the repository at this point in the history
Feature/#75 photo
  • Loading branch information
hs-1991317-YoonseokYang authored May 31, 2024
2 parents 3642105 + a606745 commit ffd419c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,15 @@ public String generateTitle(List<String> colors, List<String> labels, String pla
jsonBody =
"{\"contents\":[{\"parts\":[{\"text\":\"์ด ๊ธ€์€ ์—ฌํ–‰ ์‚ฌ์ง„์— ๋Œ€ํ•œ ์ •๋ณด์•ผ. ์‚ฌ์ง„์˜ label์€ " + joinStrings(labels) + ". " +
"์‚ฌ์ง„์˜ dominant color๋Š”" + joinStrings(colors) + ". " +
"๊ตฌ์ฒด์ ์ธ ์ƒํ™ฉ์„ ๋ฌ˜์‚ฌํ•˜์ง€๋งˆ. dominant color๋ฅผ ์ถœ๋ ฅํ•˜์ง€ ๋งˆ. "+
"์‚ฌ์ง„์˜ ์ œ๋ชฉ์„ 30์ž ๋‚ด์™ธ๋กœ ์จ ์ค˜.\"}]}]}";

} else {
// JSON ๋ฐ์ดํ„ฐ ๊ตฌ์„ฑ
jsonBody =
"{\"contents\":[{\"parts\":[{\"text\":\"์ด ๊ธ€์€ ์—ฌํ–‰ ์‚ฌ์ง„์— ๋Œ€ํ•œ ์ •๋ณด์•ผ. ์‚ฌ์ง„์˜ label์€ " + joinStrings(labels) + ". " +
"์‚ฌ์ง„์˜ dominant color๋Š”" + joinStrings(colors) + ". " +
"์œ„์น˜๋Š”" + place + ". ์œ„์น˜ ์ •๋ณด๋Š” ๋ชจํ˜ธํ•˜๊ฒŒ ํ‘œํ˜„ํ•ด." +
"์œ„์น˜๋Š”" + place + ". ์œ„์น˜ ์ •๋ณด๋Š” ๋ชจํ˜ธํ•˜๊ฒŒ ํ‘œํ˜„ํ•ด. ๊ตฌ์ฒด์ ์ธ ์ƒํ™ฉ์„ ๋ฌ˜์‚ฌํ•˜์ง€๋งˆ. dominant color๋ฅผ ์ถœ๋ ฅํ•˜์ง€ ๋งˆ."+
"์‚ฌ์ง„์˜ ์ œ๋ชฉ์„ 30์ž ๋‚ด์™ธ๋กœ ์จ ์ค˜.\"}]}]}";

}
Expand Down Expand Up @@ -75,15 +76,15 @@ public String generateComment(List<String> colors, List<String> labels, String p
"{\"contents\":[{\"parts\":[{\"text\":\"์ด ๊ธ€์€ ์—ฌํ–‰ ์‚ฌ์ง„์— ๋Œ€ํ•œ ์ •๋ณด์•ผ. ์‚ฌ์ง„์˜ label์€ " + joinStrings(labels) + ". " +
"์‚ฌ์ง„์˜ dominant color๋Š”" + joinStrings(colors) + ". " +
"์‚ฌ์ง„์— ๋Œ€ํ•œ ๊ธ€์„ 150์ž ๋‚ด์™ธ๋กœ ์จ ์ค˜. ์™„๊ฒฐ๋œ ๋ฌธ์žฅ์œผ๋กœ ์จ. ์ตœ๋Œ€ํ•œ ์ถ”์ƒ์ ์œผ๋กœ ์ž‘์„ฑํ•ด. " +
"์ฃผ์–ด์ง„ ์ •๋ณด๋งŒ ํ™œ์šฉํ•ด. ๋‘๋ฃจ๋ญ‰์ˆ ํ•˜๊ฒŒ ์ž‘์„ฑํ•ด. ์‹œ๊ฐ„์„ ์œ ์ถ”ํ•  ์ˆ˜ ์žˆ๋Š” ๋‹จ์–ด๋ฅผ ๋„ฃ์ง€ ๋งˆ. ์ผ๊ธฐ ํ˜•์‹์œผ๋กœ ์ž‘์„ฑ ํ•ด.\"}]}]}";
"์ฃผ์–ด์ง„ ์ •๋ณด๋งŒ ํ™œ์šฉํ•ด. ๋‘๋ฃจ๋ญ‰์ˆ ํ•˜๊ฒŒ ์ž‘์„ฑํ•ด. ์‹œ๊ฐ„์„ ์œ ์ถ”ํ•  ์ˆ˜ ์žˆ๋Š” ๋‹จ์–ด๋ฅผ ๋„ฃ์ง€ ๋งˆ. dominant color๋ฅผ ์ถœ๋ ฅํ•˜์ง€ ๋งˆ. ์ผ๊ธฐ ํ˜•์‹์œผ๋กœ ์ž‘์„ฑ ํ•ด.\"}]}]}";
} else {
// JSON ๋ฐ์ดํ„ฐ ๊ตฌ์„ฑ
jsonBody =
"{\"contents\":[{\"parts\":[{\"text\":\"์ด๊ฑด ์—ฌํ–‰ ์‚ฌ์ง„์— ๋Œ€ํ•œ ์ •๋ณด์•ผ. ์‚ฌ์ง„์˜ ๋ ˆ์ด๋ธ”์€ " + joinStrings(labels) + ". " +
"์‚ฌ์ง„์˜ dominant colors๋Š”" + joinStrings(colors) + ". " +
"์œ„์น˜๋Š”" + place + ". " +
"์‚ฌ์ง„์— ๋Œ€ํ•œ ๊ธ€์„ 150์ž ๋‚ด์™ธ๋กœ ์จ ์ค˜. ์™„๊ฒฐ๋œ ๋ฌธ์žฅ์œผ๋กœ ์จ. ์ตœ๋Œ€ํ•œ ์ถ”์ƒ์ ์œผ๋กœ ์ž‘์„ฑํ•ด. " +
"์ฃผ์–ด์ง„ ์ •๋ณด๋งŒ ํ™œ์šฉํ•ด. ๋‘๋ฃจ๋ญ‰์ˆ ํ•˜๊ฒŒ ์ž‘์„ฑํ•ด. ์‹œ๊ฐ„์„ ์œ ์ถ”ํ•  ์ˆ˜ ์žˆ๋Š” ๋‹จ์–ด๋ฅผ ๋„ฃ์ง€ ๋งˆ. ์ผ๊ธฐ ํ˜•์‹์œผ๋กœ ์ž‘์„ฑ ํ•ด.\"}]}]}";
"์ฃผ์–ด์ง„ ์ •๋ณด๋งŒ ํ™œ์šฉํ•ด. ๋‘๋ฃจ๋ญ‰์ˆ ํ•˜๊ฒŒ ์ž‘์„ฑํ•ด. ์‹œ๊ฐ„์„ ์œ ์ถ”ํ•  ์ˆ˜ ์žˆ๋Š” ๋‹จ์–ด๋ฅผ ๋„ฃ์ง€ ๋งˆ. dominant color๋ฅผ ์ถœ๋ ฅํ•˜์ง€ ๋งˆ. ์ผ๊ธฐ ํ˜•์‹์œผ๋กœ ์ž‘์„ฑ ํ•ด.\"}]}]}";

}

Expand Down

0 comments on commit ffd419c

Please sign in to comment.