File size: 371 Bytes
dbc8a29
 
 
6053ef6
dbc8a29
 
619861f
 
 
 
4835376
dbc8a29
1
2
3
4
5
6
7
8
9
10
11
12
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())