File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -312,10 +312,6 @@ def new_segment(
312312 )
313313 seek += segment_size
314314
315- if not condition_on_previous_text or result .temperature > 0.5 :
316- # do not feed the prompt tokens if a high temperature was used
317- prompt_reset_since = len (all_tokens )
318-
319315 if word_timestamps :
320316 add_word_timestamps (
321317 segments = current_segments ,
@@ -361,6 +357,10 @@ def new_segment(
361357 [token for segment in current_segments for token in segment ["tokens" ]]
362358 )
363359
360+ if not condition_on_previous_text or result .temperature > 0.5 :
361+ # do not feed the prompt tokens if a high temperature was used
362+ prompt_reset_since = len (all_tokens )
363+
364364 # update progress bar
365365 pbar .update (min (content_frames , seek ) - previous_seek )
366366
You can’t perform that action at this time.
0 commit comments