mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-18 21:15:16 +02:00
refactor(podcasts): plan transcript length from midpoint seconds
This commit is contained in:
parent
116c38feac
commit
16d226e5ce
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ async def plan_outline(
|
|||
tc = TranscriptConfig.from_runnable_config(config)
|
||||
llm = await _require_llm(state, tc)
|
||||
|
||||
target_words = round(tc.spec.duration.midpoint_minutes * _WORDS_PER_MINUTE)
|
||||
target_words = round(tc.spec.duration.midpoint_seconds * _WORDS_PER_MINUTE / 60)
|
||||
suggested_segments = max(1, round(target_words / _WORDS_PER_SEGMENT))
|
||||
|
||||
messages = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue