bstraehle commited on
Commit
1c1978e
1 Parent(s): 5818acc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -38,7 +38,7 @@ def create_assistant(client):
38
  return assistant
39
 
40
  def load_assistant(client):
41
- assistant = client.beta.assistants.retrieve("asst_rA2o181bBD633oWoaiImdzwG")
42
 
43
  show_json("assistant", assistant)
44
 
@@ -129,7 +129,7 @@ def chat(message, history):
129
  global client, assistant, thread
130
 
131
  if assistant == None:
132
- assistant = create_assistant(client)
133
 
134
  if thread == None or len(history) == 0:
135
  thread = create_thread(client)
 
38
  return assistant
39
 
40
  def load_assistant(client):
41
+ assistant = client.beta.assistants.retrieve("asst_kjO8BRHMREWBlY0LQ7WECfeD")
42
 
43
  show_json("assistant", assistant)
44
 
 
129
  global client, assistant, thread
130
 
131
  if assistant == None:
132
+ assistant = load_assistant(client)
133
 
134
  if thread == None or len(history) == 0:
135
  thread = create_thread(client)