Deepakkori45 commited on
Commit
8c6ff7f
·
verified ·
1 Parent(s): 6f76a89

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ assistant_id = "asst_bj2N3tOyOXHjuZSTsXuZrXuF" # Replace with your own assistan
27
 
28
  def ensure_single_thread_id():
29
  if "thread_id" not in st.session_state:
30
- thread = client.threads.create()
31
  st.session_state.thread_id = thread.id
32
  return st.session_state.thread_id
33
 
 
27
 
28
  def ensure_single_thread_id():
29
  if "thread_id" not in st.session_state:
30
+ thread = client.beta.threads.create()
31
  st.session_state.thread_id = thread.id
32
  return st.session_state.thread_id
33