Closed robert-min closed 7 months ago
url : /user/image
method : POST
header: id (์ค์ ์๋น์ค์์๋ ์ ์ ์์ด๋๊ฐ ๋ค์ด๊ฐ์ง๋ง, Demo์์๋ ์๋ฌด ๊ฐ์ด๋ ๋ฃ์ด๋ ๋จ.)
file : ๋ฏธ์ ์ํ ์ด๋ฏธ์ง(jpg, png ๋ค ๊ฐ๋ฅ)
Respose
{
"meta": {
"code": 200,
"message": "ok"
},
"data": {
"generated_id": "20240202_234318_hello"
}
}
url : /user/content
method : POST
body : generated_id (์ด๋ฏธ์ง ์ ๋ฌ API์์ ๋ฐ๊ธ๋ ์์ด๋, ์ค์ ์๋น์ค๋ ์ด๋ฏธ์ง ์ ๋ฌ API ์์ฒญ ํ๋๋น ํ๋์ ์์ฑ ์์ด๋๋ผ ์ฝํ ์ธ ์์ฑ API๋ ํ๋ฒ๋ง ์ฌ์ฉ๊ฐ๋ฅํ์ง๋ง, Demo์๋ ์ฌ๋ฌ๋ฒ ์์ฒญํด๋ ์๋ฌ ๋ฐ์ ์ํจ. ํธํ๊ฒ ํ ์คํธ ํ๋ฉด ๋จ)
Response(SSE)
content: The painting you've presented is "Starry Night" by Vincent van Gogh, a Dutch post-impressionist painter who is among the most famous and influential figures in the history of Western art. Vincent van Gogh lived from 1853 to 1890 and experienced little success during his lifetime, being considered a madman and a failure. "Starry Night" was created during van Gogh's time at the asylum in Saint-Rรฉmy-de-Provence, France, in 1889, where he lived for about a year following a breakdown and the mutilation of his left ear. The medium he employed was oil on canvas. Van Gogh's style in "Starry Night" is characterized by swirling, expressive strokes, thick applications of paint, and bold, dramatic colors, which is typical of his late works. His influences include Japanese prints, impressionism, and the emotional and spiritual ideas he sought to convey through his art. The painting depicts a night sky filled with whirling clouds, shining stars, and a bright crescent moon. The foreground features a dark figure of a cypress tree which is often seen in van Gogh's works. Below the rolling night sky, there is a peaceful small town with a dominating church spire, which contrasts with the animated and slightly chaotic sky.
coord: {'starry_sky': {'coord': [[0, 0, 600, 300]], 'context': ' The painting depicts a night sky filled with whirling clouds, shining stars, and a bright crescent moon. '}, 'cypress_tree': {'coord': [[0, 300, 150, 475]], 'context': "The foreground features a dark figure of a cypress tree which is often seen in van Gogh's works. "}, 'village': {'coord': [[150, 375, 600, 475]], 'context': ''}}
stream finished
2๋ฒ API ๊ฒฝ์ฐ ๋งค๋ฒ Openai API์ ์์ฒญํ๊ธฐ ๋๋ฌธ์ ํ ํฐ์ ๊ณ์ ์ฌ์ฉํด์ผํ๊ณ ์๋ต ๋ฐ๋๋ฐ ์๊ฐ์ด ์ค๋ ๊ฑธ๋ฆฌ๊ธฐ ๋๋ฌธ์ Demo API๋ฅผ ๋ง๋ค์์. ์ฒ์์ ์ฐ๊ฒฐํ ๋๋ 3๋ฒ API๋ฅผ ์ฌ์ฉํด์ ์งํํ๊ณ 2๋ฒ API๋ ํ์ํ ๋๋ง ์ฌ์ฉํ๊ธฐ!!!
url : /user/demo
method: POST
body: generated_id (์๋ฌด ๊ฐ์ด๋ ๋ฃ์ด๋ ๋จ. ์ด์ฐจํผ demo API๋ผ ์๋ต์ ๋์ผ)
Response
content: Vincent van Gogh was a Dutch post-impressionist painter who is among the most famous and influential figures in the history of Western art. He was born on March 30, 1853, and passed away on July 29, 1890. Despite that, his fame grew posthumously, and his works became celebrated for their emotional honesty, bold color, and innovative application of paint. Van Gogh worked with a variety of media, including oil on canvas, and he is known for his expressive and emotive use of vibrant color and energetic application of impastoed paint. His style, while grounded in impressionism, moved toward what would become known as expressionism. His influences ranged widely, from the realism of Millet to the impressionistic light and color of the Paris art scene. Japanese prints also influenced his work, which can be seen in his use of color and compositions. "The Starry Night," one of Van Gogh's most famous works, depicts a swirling night sky filled with yellow, glowing stars over a small village. It features a prominent cypress tree in the foreground, which could symbolize death, eternal life, or both, as cypresses are often found in cemeteries and yet are also evergreen. The swirling patterns of the sky create a dynamic movement, conveying deep emotional resonance, where the night sky becomes a field of roiling energy.
coord: {'starry_sky': {'coord': [[0, 0, 600, 250]], 'context': ' "The Starry Night," one of Van Gogh's most famous works, depicts a swirling night sky filled with yellow, glowing stars over a small village. '}, 'cypress_tree': {'coord': [[200, 290, 250, 475]], 'context': 'It features a prominent cypress tree in the foreground, which could symbolize death, eternal life, or both, as cypresses are often found in cemeteries and yet are also evergreen. '}, 'village': {'coord': [[10, 370, 400, 475]], 'context': ' "The Starry Night," one of Van Gogh's most famous works, depicts a swirling night sky filled with yellow, glowing stars over a small village. '}}
stream finished
๐ Description
Demo ์์ฐ์ ์ํ ๋ฐฑ์๋ ์๋ฒ๋ฅผ ๋ฐฐํฌํฉ๋๋ค.
๐ Goal
$\tiny{๊ตฌ์ฒด์ ์ธ\ ์ฐ์ถ๋ฌผ์\ ํฌํจํ\ ๋ชฉํ๋ฅผ\ ์์ฑํด์ฃผ์ธ์.}$
โ๏ธ Todo
$\tiny{๋ชฉํ\ ๋ฌ์ฑ์\ ์ํด\ ํด์ผํ \ ์ผ์\ ์ธ๋ถ์ ์ผ๋ก\ ์์ฑํด์ฃผ์ธ์.}$