Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -241,7 +241,7 @@ class AdvancedRAG:
|
|
| 241 |
thread_id=self.thread_id,
|
| 242 |
role="user",
|
| 243 |
content="I have uploaded a document. Please analyze it.",
|
| 244 |
-
|
| 245 |
)
|
| 246 |
|
| 247 |
return file_obj.id
|
|
|
|
| 241 |
thread_id=self.thread_id,
|
| 242 |
role="user",
|
| 243 |
content="I have uploaded a document. Please analyze it.",
|
| 244 |
+
attachments=[{"file_id": file_obj.id}]
|
| 245 |
)
|
| 246 |
|
| 247 |
return file_obj.id
|