allinaigc commited on
Commit
5f13715
·
1 Parent(s): d7fc873

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -245,10 +245,10 @@ async def text_mode():
245
  messages=[
246
  {"role": m["role"], "content": m["content"]}
247
  for m in st.session_state.messages
248
- ], ## 这里是多轮会话。
249
  stream=True,
250
  # messages=[{'role': 'system', 'content': 'you are ChatGPT'}, {
251
- # 'role': 'user', 'content': prompt}], ## 这里是单轮会话。
252
  stream=True,
253
  ):
254
  full_response += response.choices[0].delta.get(
 
245
  messages=[
246
  {"role": m["role"], "content": m["content"]}
247
  for m in st.session_state.messages
248
+ ],
249
  stream=True,
250
  # messages=[{'role': 'system', 'content': 'you are ChatGPT'}, {
251
+ # 'role': 'user', 'content': prompt}],
252
  stream=True,
253
  ):
254
  full_response += response.choices[0].delta.get(