Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -52,10 +52,8 @@ def create_thread(client):
|
|
52 |
return thread
|
53 |
|
54 |
def create_message(client, thread, msg):
|
55 |
-
print(msg)
|
56 |
-
|
57 |
-
attachment = "{}"
|
58 |
-
|
59 |
#if msg[files]:
|
60 |
# attachment = "{}"
|
61 |
|
@@ -63,7 +61,7 @@ def create_message(client, thread, msg):
|
|
63 |
role="user",
|
64 |
thread_id=thread.id,
|
65 |
content=msg["text"],
|
66 |
-
attachments=[attachment],
|
67 |
)
|
68 |
|
69 |
show_json("message", message)
|
|
|
52 |
return thread
|
53 |
|
54 |
def create_message(client, thread, msg):
|
55 |
+
#print(msg)
|
56 |
+
#attachment = "{}"
|
|
|
|
|
57 |
#if msg[files]:
|
58 |
# attachment = "{}"
|
59 |
|
|
|
61 |
role="user",
|
62 |
thread_id=thread.id,
|
63 |
content=msg["text"],
|
64 |
+
#attachments=[attachment],
|
65 |
)
|
66 |
|
67 |
show_json("message", message)
|