vidcraft / utils.py
ihsanvp's picture
fix: progress updater
eda9a9f
raw
history blame contribute delete
269 Bytes
from gradio import Progress
def create_progress_updater(start: int, total: int, desc: str, progress: Progress):
def updater(pipe, step, timestep, callback_kwargs):
progress((step + start, total), desc=desc)
return callback_kwargs
return updater