Spaces:
Sleeping
Sleeping
Update api.py
Browse files
api.py
CHANGED
@@ -35,7 +35,7 @@ async def read_root(*,
|
|
35 |
hist = model.response(prompt+"\n"+hist+"\n"+doc)
|
36 |
await websocket.send_text(f"draft_sum: {hist}")
|
37 |
sm_list.append(hist)
|
38 |
-
mdobj_str = f"# {title}\n\n"
|
39 |
for ct, sm in zip(chapter_titles[2:], sm_list):
|
40 |
mdobj_str += f"## {ct}\n\n{sm}\n\n\n"
|
41 |
await websocket.send_text(f"output: {mdobj_str}")
|
|
|
35 |
hist = model.response(prompt+"\n"+hist+"\n"+doc)
|
36 |
await websocket.send_text(f"draft_sum: {hist}")
|
37 |
sm_list.append(hist)
|
38 |
+
mdobj_str = f"# {title}\n\n{hist}\n\n\n"
|
39 |
for ct, sm in zip(chapter_titles[2:], sm_list):
|
40 |
mdobj_str += f"## {ct}\n\n{sm}\n\n\n"
|
41 |
await websocket.send_text(f"output: {mdobj_str}")
|