Download app.py from METANTROPIA/Linear_Regression_Forecast: direct link, hf CLI and curl.
- Browser
- Download file 282 Bytes
-
https://huggingface.co/spaces/METANTROPIA/Linear_Regression_Forecast/resolve/main/app.py
- Command line
-
hf download hf://spaces/METANTROPIA/Linear_Regression_Forecast/app.py
-
curl -L -o app.py https://huggingface.co/spaces/METANTROPIA/Linear_Regression_Forecast/resolve/main/app.py
282 Bytes
| import os, runpy, subprocess | |
| if not os.path.isdir("repo"): | |
| subprocess.run(["git", "clone", "--depth", "1", | |
| "https://github.com/METANTROP-IA/Linear_Regression_Forecast", | |
| "repo"], check=True) | |
| runpy.run_path("repo/app.py")["demo"].launch() |