Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -65,7 +65,7 @@ def create_assistant(client):
|
|
65 |
return assistant
|
66 |
|
67 |
def load_assistant(client):
|
68 |
-
ASSISTANT_ID = "
|
69 |
|
70 |
assistant = client.beta.assistants.retrieve(ASSISTANT_ID)
|
71 |
|
@@ -218,7 +218,7 @@ def chat(message, history):
|
|
218 |
global client, assistant, thread
|
219 |
|
220 |
if assistant == None:
|
221 |
-
assistant =
|
222 |
|
223 |
if thread == None or len(history) == 0:
|
224 |
thread = create_thread(client)
|
|
|
65 |
return assistant
|
66 |
|
67 |
def load_assistant(client):
|
68 |
+
ASSISTANT_ID = "asst_ypbcWnilAd60bc2DQ8haDL5P"
|
69 |
|
70 |
assistant = client.beta.assistants.retrieve(ASSISTANT_ID)
|
71 |
|
|
|
218 |
global client, assistant, thread
|
219 |
|
220 |
if assistant == None:
|
221 |
+
assistant = load_assistant(client)
|
222 |
|
223 |
if thread == None or len(history) == 0:
|
224 |
thread = create_thread(client)
|