Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ def chat(message, history):
|
|
72 |
content=message,
|
73 |
)
|
74 |
|
75 |
-
show_json("message", message)
|
76 |
|
77 |
run = _client.beta.threads.runs.create(
|
78 |
assistant_id=_assistant.id,
|
@@ -81,11 +81,11 @@ def chat(message, history):
|
|
81 |
|
82 |
run = wait_on_run(run)
|
83 |
|
84 |
-
|
85 |
|
86 |
messages = _client.beta.threads.messages.list(thread_id=_thread.id)
|
87 |
|
88 |
-
|
89 |
|
90 |
return extract_content_values(messages)[0]
|
91 |
|
|
|
72 |
content=message,
|
73 |
)
|
74 |
|
75 |
+
#show_json("message", message)
|
76 |
|
77 |
run = _client.beta.threads.runs.create(
|
78 |
assistant_id=_assistant.id,
|
|
|
81 |
|
82 |
run = wait_on_run(run)
|
83 |
|
84 |
+
show_json("run", run)
|
85 |
|
86 |
messages = _client.beta.threads.messages.list(thread_id=_thread.id)
|
87 |
|
88 |
+
show_json("messages", messages)
|
89 |
|
90 |
return extract_content_values(messages)[0]
|
91 |
|