Spaces:
Runtime error
Runtime error
Update api.py
Browse files
api.py
CHANGED
@@ -37,6 +37,6 @@ async def read_root(websocket: WebSocket):
|
|
37 |
mdobj_str = f"# {title}\n\n{hist}\n\n\n"
|
38 |
for ct, sm in zip(chapter_titles[2:], sm_list):
|
39 |
mdobj_str += f"## {ct}\n\n{sm}\n\n\n"
|
40 |
-
|
41 |
|
42 |
# uvicorn api:app --reload
|
|
|
37 |
mdobj_str = f"# {title}\n\n{hist}\n\n\n"
|
38 |
for ct, sm in zip(chapter_titles[2:], sm_list):
|
39 |
mdobj_str += f"## {ct}\n\n{sm}\n\n\n"
|
40 |
+
await websocket.send_text(f"output: {mdobj_str}")
|
41 |
|
42 |
# uvicorn api:app --reload
|