bstraehle commited on
Commit
43f000e
1 Parent(s): 2e11a5e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -49,7 +49,7 @@ def create_assistant(client):
49
  return assistant
50
 
51
  def load_assistant(client):
52
- ASSISTANT_ID = "asst_VL5JZQzUSlIhAF8k8CfCcR0f"
53
 
54
  assistant = client.beta.assistants.retrieve(ASSISTANT_ID)
55
 
@@ -150,7 +150,7 @@ def chat(message, history):
150
  global client, assistant, thread
151
 
152
  if assistant == None:
153
- assistant = create_assistant(client)
154
 
155
  if thread == None or len(history) == 0:
156
  thread = create_thread(client)
 
49
  return assistant
50
 
51
  def load_assistant(client):
52
+ ASSISTANT_ID = "asst_TpZgBd2QYaxUxCwUy8J9m3Bq"
53
 
54
  assistant = client.beta.assistants.retrieve(ASSISTANT_ID)
55
 
 
150
  global client, assistant, thread
151
 
152
  if assistant == None:
153
+ assistant = load_assistant(client)
154
 
155
  if thread == None or len(history) == 0:
156
  thread = create_thread(client)