npc0 commited on
Commit
e5ea3e0
1 Parent(s): 4f3a012

Update api.py

Browse files
Files changed (1) hide show
  1. api.py +1 -1
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}")