Spaces:
Sleeping
Sleeping
Download src/envs.py from Pitt-iRiS-Lab/MedIRT: direct link, hf CLI and curl.
- Browser
- Download file 436 Bytes
-
https://huggingface.co/spaces/Pitt-iRiS-Lab/MedIRT/resolve/main/src/envs.py
- Command line
-
hf download hf://spaces/Pitt-iRiS-Lab/MedIRT/src/envs.py
-
curl -L -o envs.py https://huggingface.co/spaces/Pitt-iRiS-Lab/MedIRT/resolve/main/src/envs.py
436 Bytes
| import os | |
| from huggingface_hub import HfApi | |
| # Info to change for your repository | |
| # ---------------------------------- | |
| TOKEN = os.environ.get("HF_TOKEN") # A read/write token for your org | |
| SPACE_NAME = "MedIRT" | |
| OWNER = "Pitt-iRiS-Lab" # Change to your org - don't forget to create a results and request dataset, with the correct format! | |
| # ---------------------------------- | |
| REPO_ID = f"{OWNER}/{SPACE_NAME}" | |
| API = HfApi(token=TOKEN) | |