Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def init_assistant():
|
|
17 |
|
18 |
show_json(thread)
|
19 |
|
20 |
-
return assistant, thread
|
21 |
|
22 |
def show_json(obj):
|
23 |
print("###")
|
@@ -43,7 +43,7 @@ def extract_content_value(data):
|
|
43 |
|
44 |
|
45 |
def chat(message, history):
|
46 |
-
assistant, thread = init_assistant()
|
47 |
|
48 |
history_openai_format = []
|
49 |
for human, assistant in history:
|
|
|
17 |
|
18 |
show_json(thread)
|
19 |
|
20 |
+
return client, assistant, thread
|
21 |
|
22 |
def show_json(obj):
|
23 |
print("###")
|
|
|
43 |
|
44 |
|
45 |
def chat(message, history):
|
46 |
+
client, assistant, thread = init_assistant()
|
47 |
|
48 |
history_openai_format = []
|
49 |
for human, assistant in history:
|