Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -23,8 +23,12 @@ def generate_living_record(data):
|
|
23 |
response = openai.ChatCompletion.create(
|
24 |
model="gpt-3.5-turbo-16k",
|
25 |
messages=[
|
26 |
-
{"role": "system",
|
27 |
-
|
|
|
|
|
|
|
|
|
28 |
],
|
29 |
temperature=0.7,
|
30 |
max_tokens=10000,
|
|
|
23 |
response = openai.ChatCompletion.create(
|
24 |
model="gpt-3.5-turbo-16k",
|
25 |
messages=[
|
26 |
+
{"role": "system",
|
27 |
+
"content": f"์ฌ์ฉ์์ ์
๋ ฅ {data}๋ ํ์์ ์ด์ ์ํ๊ธฐ๋ก๋ถ์
๋๋ค, ์ด์ ์ํ ๊ธฐ๋ก๋ถ๋ฅผ ์ฐธ๊ณ ํด์ ์ข
ํฉ์ ์ธ ์ฑ์ฅ๊ณผ ๋ฐ๋ฌ์ ๊ฐ์กฐํ๋ ์ํ๊ธฐ๋ก๋ถ๋ฅผ ์์ฑํฉ๋๋ค. ํ์
์ฑ๊ณผ ๋ฟ๋ง ์๋๋ผ, ์ธ์ฑ, ์ฐฝ์์ฑ, ๊ทธ๋ฆฌ๊ณ ํ์์ ์ ๋ฐ์ ์ธ ๋ฐ๋ฌ์ ์ธ๊ธํ์ธ์. ๋ฌธ์ฅ์ 'ํ์์'์ผ๋ก ์์ํ์ง ์๋ ํํ๋ก ์์ํ๊ณ ๋ฌธ์ฅ ๋ง๋ฌด๋ฆฌ๋ ๋ฐ๋์ '~ํจ,~์,~์' ํํ๋ก ์ข
๊ฒฐํ ์ด๋ฏธ๋ฅผ ์ฌ์ฉํฉ๋๋ค."
|
28 |
+
},
|
29 |
+
{"role": "user",
|
30 |
+
"content": data_str
|
31 |
+
}
|
32 |
],
|
33 |
temperature=0.7,
|
34 |
max_tokens=10000,
|