DField commited on
Commit
9bed285
โ€ข
1 Parent(s): 8923cf9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -67,7 +67,7 @@ def summarize_text_with_chat(text, max_length=5000):
67
  trimmed_text = text[:max_length]
68
  response = client.chat.completions.create(
69
  messages=[
70
- {"role": "system", "content": "ๆฌกใฎๆ–‡ๆ›ธใ‚’่ฆ็ด„ใ—ใฆใใ ใ•ใ„ใ€‚ๅฟ…ใš'## ใ‚ฟใ‚คใƒˆใƒซ', '## ่ฆ็ด„', '## ๅฐ‚้–€็”จ่ชž่งฃ่ชฌ'ใ‚’่จ˜่ผ‰ใ—ใฆใใ ใ•ใ„ใ€‚"},
71
  {"role": "user", "content": trimmed_text}
72
  ],
73
  model="llama3-70b-8192",
 
67
  trimmed_text = text[:max_length]
68
  response = client.chat.completions.create(
69
  messages=[
70
+ {"role": "system", "content": "ๆฌกใฎๆ–‡ๆ›ธใ‚’ๆ—ฅๆœฌ่ชžใง่ฆ็ด„ใ—ใฆใใ ใ•ใ„ใ€‚ๅฟ…ใš'## ใ‚ฟใ‚คใƒˆใƒซ', '## ่ฆ็ด„', '## ๅฐ‚้–€็”จ่ชž่งฃ่ชฌ'ใ‚’่จ˜่ผ‰ใ—ใฆใใ ใ•ใ„ใ€‚"},
71
  {"role": "user", "content": trimmed_text}
72
  ],
73
  model="llama3-70b-8192",