tushar310 commited on
Commit
f7c2c68
·
1 Parent(s): 322c9f2
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -7,8 +7,8 @@ if "openai_model" not in st.session_state:
7
  st.session_state["openai_model"] = "gpt-3.5-turbo-16k"
8
 
9
 
10
- if "messages" not in st.session_state:
11
- st.session_state.messages = []
12
 
13
  for message in st.session_state.messages:
14
  with st.chat_message(message["role"]):
@@ -37,7 +37,7 @@ if prompt := st.chat_input("What is up?"):
37
  {"role": m["role"], "content": m["content"]}
38
  for m in st.session_state.messages
39
  ],
40
- max_tokens=13000,
41
  stream=True,
42
  ):
43
  full_response += response.choices[0].delta.get("content", "")
 
7
  st.session_state["openai_model"] = "gpt-3.5-turbo-16k"
8
 
9
 
10
+ # if "messages" not in st.session_state:
11
+ # st.session_state.messages = []
12
 
13
  for message in st.session_state.messages:
14
  with st.chat_message(message["role"]):
 
37
  {"role": m["role"], "content": m["content"]}
38
  for m in st.session_state.messages
39
  ],
40
+ max_tokens=12000,
41
  stream=True,
42
  ):
43
  full_response += response.choices[0].delta.get("content", "")