Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def create_assistant(client):
|
|
27 |
return assistant
|
28 |
|
29 |
def load_assistant():
|
30 |
-
assistant = client.beta.assistants.retrieve("
|
31 |
|
32 |
show_json("assistant", assistant)
|
33 |
|
@@ -114,7 +114,7 @@ def chat(message, history):
|
|
114 |
global client, assistant, thread
|
115 |
|
116 |
if assistant == None:
|
117 |
-
assistant =
|
118 |
|
119 |
if thread == None:
|
120 |
thread = create_thread(client)
|
|
|
27 |
return assistant
|
28 |
|
29 |
def load_assistant():
|
30 |
+
assistant = client.beta.assistants.retrieve("asst_rA2o181bBD633oWoaiImdzwG")
|
31 |
|
32 |
show_json("assistant", assistant)
|
33 |
|
|
|
114 |
global client, assistant, thread
|
115 |
|
116 |
if assistant == None:
|
117 |
+
assistant = load_assistant(client)
|
118 |
|
119 |
if thread == None:
|
120 |
thread = create_thread(client)
|