Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def create_assistant(client):
|
|
49 |
return assistant
|
50 |
|
51 |
def load_assistant(client):
|
52 |
-
ASSISTANT_ID = "
|
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 =
|
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)
|