Skip to content

Commit

Permalink
prevent timeout for refinement and chunking processes
Browse files Browse the repository at this point in the history
  • Loading branch information
ccheng26 committed Jun 6, 2024
1 parent 2d33765 commit 2b69b2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 04-call-summaries/chainlit-call-summaries-bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ async def on_click_upload_file_query(action: cl.Action):
response = await run_summarization_technique(
technique=settings["summarization_technique"], transcript=transcript
)
print(response)
if settings["summarization_technique"] != "stuffing":
cl.sleep(1)
answer = f"Result:\n{response}"
await cl.Message(content=answer).send()

Expand Down

0 comments on commit 2b69b2d

Please sign in to comment.