Download app/core/errors.py from creativeforce/attribution-2steps-method: direct link, hf CLI and curl.
- Browser
- Download file 327 Bytes
-
https://huggingface.co/spaces/creativeforce/attribution-2steps-method/resolve/main/app/core/errors.py
- Command line
-
hf download hf://spaces/creativeforce/attribution-2steps-method/app/core/errors.py
-
curl -L -o errors.py https://huggingface.co/spaces/creativeforce/attribution-2steps-method/resolve/main/app/core/errors.py
327 Bytes
| VENDOR_ERROR_INVALID_JSON = "Vendor Error: Invalid JSON data" | |
| VENDOR_THROW_ERROR = "Vendor Error: {error_message}" | |
| class VendorError(Exception): | |
| def __init__(self, message: str): | |
| super().__init__(message) | |
| class BadRequestError(Exception): | |
| def __init__(self, message: str): | |
| super().__init__(message) | |