ldhldh commited on
Commit
1377fb4
Β·
1 Parent(s): 04c8a06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -276,7 +276,7 @@ def chat(id, npc, text):
276
  model=os.environ['MODEL'],
277
  prompt = prom + f"{npc}의 λŒ€λ‹΅μ„ λ‹€μŒ λ¬Έμž₯에 맞좰 μžμ—°μŠ€λŸ½κ²Œ μž‘μ„±ν•΄μ£Όμ„Έμš”. ν•œ λ¬Έμž₯만 μž‘μ„±ν•˜μ„Έμš”.\n\n{id}:" + text+f"\n\n{npc}:"
278
  )
279
- output = response.choices[0].text.content
280
  output = output.replace(".",".\n")
281
  time.sleep(10)
282
  print(output)
 
276
  model=os.environ['MODEL'],
277
  prompt = prom + f"{npc}의 λŒ€λ‹΅μ„ λ‹€μŒ λ¬Έμž₯에 맞좰 μžμ—°μŠ€λŸ½κ²Œ μž‘μ„±ν•΄μ£Όμ„Έμš”. ν•œ λ¬Έμž₯만 μž‘μ„±ν•˜μ„Έμš”.\n\n{id}:" + text+f"\n\n{npc}:"
278
  )
279
+ output = response.choices[0].text
280
  output = output.replace(".",".\n")
281
  time.sleep(10)
282
  print(output)