Instructions to use Felipe2231/impulso-digital-site with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Adapters
How to use Felipe2231/impulso-digital-site with Adapters:
from adapters import AutoAdapterModel model = AutoAdapterModel.from_pretrained("<base-model-id>") model.load_adapter("Felipe2231/impulso-digital-site", set_active=True) - Notebooks
- Google Colab
- Kaggle
Download shared/_core/errors.ts from Felipe2231/impulso-digital-site: direct link, hf CLI and curl.
- Browser
- Download file 601 Bytes
-
https://huggingface.co/Felipe2231/impulso-digital-site/resolve/main/shared/_core/errors.ts
- Command line
-
hf download hf://Felipe2231/impulso-digital-site/shared/_core/errors.ts
-
curl -L -o errors.ts https://huggingface.co/Felipe2231/impulso-digital-site/resolve/main/shared/_core/errors.ts
601 Bytes
| /** | |
| * Base HTTP error class with status code. | |
| * Throw this from route handlers to send specific HTTP errors. | |
| */ | |
| export class HttpError extends Error { | |
| constructor( | |
| public statusCode: number, | |
| message: string | |
| ) { | |
| super(message); | |
| this.name = "HttpError"; | |
| } | |
| } | |
| // Convenience constructors | |
| export const BadRequestError = (msg: string) => new HttpError(400, msg); | |
| export const UnauthorizedError = (msg: string) => new HttpError(401, msg); | |
| export const ForbiddenError = (msg: string) => new HttpError(403, msg); | |
| export const NotFoundError = (msg: string) => new HttpError(404, msg); | |