JUNGU commited on
Commit
040a7a9
ยท
verified ยท
1 Parent(s): 7f63595

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
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", "content": "ํ•™์ƒ์˜ ์ด์ „ ์ƒํ™œ๊ธฐ๋ก๋ถ€ ๋ฐ์ดํ„ฐ๋ฅผ ๋ฐ”ํƒ•์œผ๋กœ ์˜ฌํ•ด์˜ ์ƒํ™œ๊ธฐ๋ก๋ถ€๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค."},
27
- {"role": "user", "content": data_str}
 
 
 
 
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,