whisper-webui-translate / src /hooks /progressListener.py
avans06's picture
Whisper Progress Bar - Display More Information
9b6dda4
raw
history blame contribute delete
234 Bytes
from typing import Union
class ProgressListener:
def on_progress(self, current: Union[int, float], total: Union[int, float], desc: str = None):
self.total = total
def on_finished(self, desc: str = None):
pass