stop generating frames when total_frames reached

This commit is contained in:
Craulback 2022-11-27 11:20:53 -07:00
parent df80e5661b
commit d4ecedfb33
No known key found for this signature in database
GPG Key ID: 18F2249EBA9F24B0

View File

@ -1585,6 +1585,8 @@ def txt2vid(
st.session_state["frame_duration"] = duration
st.session_state["frame_speed"] = speed
if frame_index+1 > total_frames:
break
init1 = init2