import os import requests token = os.environ.get("MAC_TOKEN", "") repo = "BrewsterWhitecapsMAC/mac-private" url = f"https://huggingface.co/datasets/{repo}/resolve/main/mac_app.py" resp = requests.get(url, headers={"Authorization": f"Bearer {token}"}, timeout=60) with open("/tmp/mac_app.py", "wb") as f: f.write(resp.content) exec(open("/tmp/mac_app.py").read())