ver Dec21stv2

updated usage of tmp and cache direcotories
added cache function for evaluation resources acquiring
This commit is contained in:
David Chang
2023-12-21 16:12:32 +08:00
parent 127a96961d
commit 295d09f1b2
4 changed files with 82 additions and 18 deletions

View File

@@ -8,13 +8,17 @@ class SetupController:
def __init__(self, http_server: str):
self.http_server = http_server + "/setup"
def setup(self, config):
def setup(self, config: List[Dict[str, Any]]):
"""
Setup Config:
{
download: list[tuple[string]], # a list of tuples of url of file to download and the save path
...
}
Args:
config (List[Dict[str, Any]]): list of dict like {str: Any}. each
config dict has the structure like
{
"type": str, corresponding to the `_{:}_setup` methods of
this class
"parameters": dick like {str, Any} providing the keyword
parameters
}
"""
for cfg in config: