mirror of
https://github.com/corca-ai/EVAL
synced 2024-11-01 03:20:10 +00:00
3ec0cc786c
* refactor: api, core * feat: static uploader * doc: update readme * fix: mkdir static file * doc: typo
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
|