mirror of https://github.com/corca-ai/EVAL
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
316 B
Python
16 lines
316 B
Python
from abc import ABC, abstractmethod, abstractstaticmethod
|
|
|
|
from env import DotEnv
|
|
|
|
STATIC_DIR = "static"
|
|
|
|
|
|
class AbstractUploader(ABC):
|
|
@abstractmethod
|
|
def upload(self, filepath: str) -> str:
|
|
pass
|
|
|
|
@abstractstaticmethod
|
|
def from_settings(settings: DotEnv) -> "AbstractUploader":
|
|
pass
|