Spaces:
Runtime error
Runtime error
Download app/api/docs.py from Ukandu/webgenie_api: direct link, hf CLI and curl.
- Browser
- Download file 1.4 kB
-
https://huggingface.co/spaces/Ukandu/webgenie_api/resolve/main/app/api/docs.py
- Command line
-
hf download hf://spaces/Ukandu/webgenie_api/app/api/docs.py
-
curl -L -o docs.py https://huggingface.co/spaces/Ukandu/webgenie_api/resolve/main/app/api/docs.py
1.4 kB
| from fastapi import APIRouter | |
| from app.registry.catalog import DATASETS, ALGORITHMS | |
| router = APIRouter(prefix="/docs", tags=["Documentation"]) | |
| def system_docs(): | |
| return { | |
| "name": "WebGenie BEELINE Platform", | |
| "description": ( | |
| "A web-based execution, benchmarking, and comparison platform " | |
| "for BEELINE GRN inference algorithms." | |
| ), | |
| "concepts": { | |
| "datasets": "scRNA-seq benchmark datasets hosted on Hugging Face", | |
| "algorithms": "BEELINE GRN inference algorithms executed via Docker", | |
| "runs": "Asynchronous benchmark executions", | |
| "metrics": ["AUROC", "AUPRC", "F1"] | |
| }, | |
| "canonical_dataset_ids": "Hugging Face dataset IDs (not UI aliases)", | |
| "example_dataset_id": DATASETS[0]["id"], | |
| "workflow": [ | |
| "GET /datasets", | |
| "GET /algorithms", | |
| "POST /runs", | |
| "GET /runs/{run_id}", | |
| "GET /runs/{run_id}/metrics" | |
| ], | |
| "example_run_payload": { | |
| "dataset_id": DATASETS[0]["id"], | |
| "algorithms": ["grnbeeline/genie3"], | |
| "params": { | |
| "num_trees": 100 | |
| } | |
| }, | |
| "frontend": "https://github.com/ukanduchimeremezejames/WebGenieDark" | |
| } | |