juancopi81's picture
Duplicate from Whispering-GPT/whisper-youtube-2-hf_dataset
7288748
raw
history blame
No virus
347 Bytes
from abc import ABC, abstractmethod
from video import YoutubeVideo
class Transform(ABC):
"""Interface for concrete Transform which transform a video object."""
@abstractmethod
def apply(self, video: YoutubeVideo) -> YoutubeVideo:
"""Apply a transform to a video. Method must be implemented by
concrete transforms."""