Spaces:
Running
Running
Update assistants.py
Browse files- assistants.py +2 -1
assistants.py
CHANGED
@@ -93,7 +93,7 @@ def create_thread():
|
|
93 |
print(get_json("thread", thread))
|
94 |
return thread
|
95 |
|
96 |
-
def create_message(thread, msg):
|
97 |
message = openai_client.beta.threads.messages.create(
|
98 |
role="user",
|
99 |
thread_id=thread.id,
|
@@ -101,6 +101,7 @@ def create_message(thread, msg):
|
|
101 |
)
|
102 |
|
103 |
print(get_json("message", message))
|
|
|
104 |
return message
|
105 |
|
106 |
def create_run(assistant, thread):
|
|
|
93 |
print(get_json("thread", thread))
|
94 |
return thread
|
95 |
|
96 |
+
def create_message(thread, msg):
|
97 |
message = openai_client.beta.threads.messages.create(
|
98 |
role="user",
|
99 |
thread_id=thread.id,
|
|
|
101 |
)
|
102 |
|
103 |
print(get_json("message", message))
|
104 |
+
gr.Info(msg, duration=30)
|
105 |
return message
|
106 |
|
107 |
def create_run(assistant, thread):
|