Spaces:
Sleeping
Sleeping
Update document_generator.py
Browse files- document_generator.py +4 -0
document_generator.py
CHANGED
@@ -300,6 +300,10 @@ async def generate_document_stream(document_generator: DocumentGenerator, docume
|
|
300 |
yield json.dumps({
|
301 |
"type": "complete_document",
|
302 |
"content": markdown_document,
|
|
|
|
|
|
|
|
|
303 |
"json": document_generator.document_outline
|
304 |
}, ensure_ascii=False) + "\n"
|
305 |
db_manager.update_database("elevatics", query, markdown_document)
|
|
|
300 |
yield json.dumps({
|
301 |
"type": "complete_document",
|
302 |
"content": markdown_document,
|
303 |
+
}, ensure_ascii=False) + "\n"
|
304 |
+
|
305 |
+
yield json.dumps({
|
306 |
+
"type": "complete_document",
|
307 |
"json": document_generator.document_outline
|
308 |
}, ensure_ascii=False) + "\n"
|
309 |
db_manager.update_database("elevatics", query, markdown_document)
|