Spaces:
Sleeping
Sleeping
Download src/api/schemas.py from Alvlt/CVE-exploit-prediction: direct link, hf CLI and curl.
- Browser
- Download file 316 Bytes
-
https://huggingface.co/spaces/Alvlt/CVE-exploit-prediction/resolve/main/src/api/schemas.py
- Command line
-
hf download hf://spaces/Alvlt/CVE-exploit-prediction/src/api/schemas.py
-
curl -L -o schemas.py https://huggingface.co/spaces/Alvlt/CVE-exploit-prediction/resolve/main/src/api/schemas.py
316 Bytes
| from pydantic import BaseModel | |
| # Just the ID is sufficient, as the API itself handles fetching the data from the NVD | |
| class CVERequest(BaseModel): | |
| cve_id: str | |
| class PredictionResponse(BaseModel): | |
| cve_id: str | |
| probability: float | |
| prediction: int | |
| vendor: str | None = None | |
| cwe: str | None = None |