Download streamlit_app.py from TimStats/MAC2: direct link, hf CLI and curl.
- Browser
- Download file 371 Bytes
-
https://huggingface.co/spaces/TimStats/MAC2/resolve/main/streamlit_app.py
- Command line
-
hf download hf://spaces/TimStats/MAC2/streamlit_app.py
-
curl -L -o streamlit_app.py https://huggingface.co/spaces/TimStats/MAC2/resolve/main/streamlit_app.py
371 Bytes
| 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()) |