Files
chaojie-ComfyUI_StreamingT2V/thirdparty/modelscope/cli/base.py
T
2024-04-08 06:24:30 +08:00

22 lines
496 B
Python

# These codes are copied from modelscope revision c58451baead80d83281f063d12fb377fad415257
# Copyright (c) Alibaba, Inc. and its affiliates.
from abc import ABC, abstractmethod
from argparse import ArgumentParser
class CLICommand(ABC):
"""
Base class for command line tool.
"""
@staticmethod
@abstractmethod
def define_args(parsers: ArgumentParser):
raise NotImplementedError()
@abstractmethod
def execute(self):
raise NotImplementedError()