Spaces:
Runtime error
Runtime error
Download app.py from Brillio-DS/OptimizationJSSP: direct link, hf CLI and curl.
- Browser
- Download file 854 Bytes
-
https://huggingface.co/spaces/Brillio-DS/OptimizationJSSP/resolve/main/app.py
- Command line
-
hf download hf://spaces/Brillio-DS/OptimizationJSSP/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Brillio-DS/OptimizationJSSP/resolve/main/app.py
854 Bytes
| from huggingface_hub import Repository | |
| import os | |
| from huggingface_hub import hf_hub_download | |
| from huggingface_hub import login | |
| token=os.environ["AUTH_TOKEN"] | |
| # login(token = token) | |
| # Download from a dataset | |
| hf_hub_download(repo_id="Brillio-DS/Optimization_JSSP",local_dir=os.getcwd(), filename="main.py", repo_type="dataset",use_auth_token=token) | |
| hf_hub_download(repo_id="Brillio-DS/Optimization_JSSP",local_dir=os.getcwd(), filename="GA.py", repo_type="dataset",use_auth_token=token) | |
| hf_hub_download(repo_id="Brillio-DS/Optimization_JSSP",local_dir=os.getcwd(), filename="MIP.py", repo_type="dataset",use_auth_token=token) | |
| hf_hub_download(repo_id="Brillio-DS/Optimization_JSSP",local_dir=os.getcwd(), filename="OR_tools.py", repo_type="dataset",use_auth_token=token) | |
| print(os.listdir()) | |
| import GA | |
| import MIP | |
| import OR_tools | |
| from main import run | |
| run() |