Skip to content

Commit

Permalink
Refactor: New async sum command
Browse files Browse the repository at this point in the history
  • Loading branch information
ket0x4 committed Jun 17, 2024
1 parent 35e067e commit 0ae1089
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ketard.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ async def handle_sum_command(bot, message):
# summarize
response_header = f"**Summarized Video:** `{url}`\n\n"
start_time = time.time()
ollama_response = await ollama.invoke(prompt)
ollama_response = await ollama.ainvoke(prompt)
end_time = time.time()
generation_time = round(end_time - start_time, 2)
model_name = ollama.model
Expand Down

0 comments on commit 0ae1089

Please sign in to comment.