Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -38,10 +38,12 @@ def chat(message, history, openai_api_key):
|
|
38 |
|
39 |
global openai_client, assistant, thread
|
40 |
|
41 |
-
print("openai_client="
|
|
|
42 |
if openai_client == None:
|
43 |
openai_client = OpenAI(api_key=openai_api_key)
|
44 |
-
print("openai_client="
|
|
|
45 |
|
46 |
# On first run, create assistant and update assistant_id,
|
47 |
# see https://platform.openai.com/playground/assistants.
|
|
|
38 |
|
39 |
global openai_client, assistant, thread
|
40 |
|
41 |
+
print("openai_client=")
|
42 |
+
print(openai_client)
|
43 |
if openai_client == None:
|
44 |
openai_client = OpenAI(api_key=openai_api_key)
|
45 |
+
print("openai_client=")
|
46 |
+
print(openai_client)
|
47 |
|
48 |
# On first run, create assistant and update assistant_id,
|
49 |
# see https://platform.openai.com/playground/assistants.
|