Spaces:
Runtime error
Runtime error
Download app/api/algorithms.py from Ukandu/webgenie_api: direct link, hf CLI and curl.
- Browser
- Download file 715 Bytes
-
https://huggingface.co/spaces/Ukandu/webgenie_api/resolve/main/app/api/algorithms.py
- Command line
-
hf download hf://spaces/Ukandu/webgenie_api/app/api/algorithms.py
-
curl -L -o algorithms.py https://huggingface.co/spaces/Ukandu/webgenie_api/resolve/main/app/api/algorithms.py
715 Bytes
| from fastapi import APIRouter | |
| from app.registry.catalog import ALGORITHMS | |
| router = APIRouter(prefix="/algorithms", tags=["Algorithms"]) | |
| BEELINE_ALGORITHMS = [ | |
| "grnboost2", | |
| "genie3", | |
| "clr", | |
| "aracne", | |
| "mrnet", | |
| "pearson", | |
| "spearman", | |
| "pidc", | |
| "inferelator", | |
| "tigress", | |
| "pcc", | |
| "glasso" | |
| ] | |
| def list_algorithms(): | |
| """ | |
| List all BEELINE Docker algorithms | |
| """ | |
| return [ | |
| { | |
| "name": alg, | |
| "docker_image": f"grnbeeline/{alg}" | |
| } | |
| for alg in BEELINE_ALGORITHMS | |
| ] | |
| def list_algorithms(): | |
| return ALGORITHMS | |