Spaces:
Running
Running
Update app.py
Browse files
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("
|
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 =
|
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)
|