shuanglei commited on
Commit
fb5fbee
·
1 Parent(s): 9132635

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ def chatbot(input):
28
  model="gpt-3.5-turbo", messages=messages
29
  )
30
  reply = chat.choices[0].message.content
31
- messages.append({"role": "assistant", "content": reply})
32
  return reply
33
 
34
  inputs = gr.inputs.Textbox(lines=7, label="文字润色机")
 
28
  model="gpt-3.5-turbo", messages=messages
29
  )
30
  reply = chat.choices[0].message.content
31
+ messages = [{"role": "system", "content": prompt}]
32
  return reply
33
 
34
  inputs = gr.inputs.Textbox(lines=7, label="文字润色机")