IBYDMT / app_lib /utils.py
jacopoteneggi's picture
Update
dffe47c verified
raw
history blame contribute delete
515 Bytes
from huggingface_hub import hf_hub_download
supported_models_path = hf_hub_download(
repo_id="jacopoteneggi/IBYDMT",
filename="supported_models.txt",
repo_type="dataset",
)
supported_datasets_path = hf_hub_download(
repo_id="jacopoteneggi/IBYDMT",
filename="supported_datasets.txt",
repo_type="dataset",
)
with open(supported_models_path, "r") as f:
SUPPORTED_MODELS = f.read().splitlines()
with open(supported_datasets_path, "r") as f:
SUPPORTED_DATASETS = f.read().splitlines()