Spaces:
Running
Running
Download model/__init__.py from techplugged/kronos-forecast: direct link, hf CLI and curl.
- Browser
- Download file 412 Bytes
-
https://huggingface.co/spaces/techplugged/kronos-forecast/resolve/main/model/__init__.py
- Command line
-
hf download hf://spaces/techplugged/kronos-forecast/model/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/techplugged/kronos-forecast/resolve/main/model/__init__.py
412 Bytes
| from .kronos import KronosTokenizer, Kronos, KronosPredictor | |
| model_dict = { | |
| 'kronos_tokenizer': KronosTokenizer, | |
| 'kronos': Kronos, | |
| 'kronos_predictor': KronosPredictor | |
| } | |
| def get_model_class(model_name): | |
| if model_name in model_dict: | |
| return model_dict[model_name] | |
| else: | |
| print(f"Model {model_name} not found in model_dict") | |
| raise NotImplementedError | |