Spaces:
Runtime error
Runtime error
Download src/lib/utils/json.ts from FallnAI/LLM-Inference: direct link, hf CLI and curl.
- Browser
- Download file 105 Bytes
-
https://huggingface.co/spaces/FallnAI/LLM-Inference/resolve/17c3edf3bbdc68f50a29f6cf9d6ef4168e935349/src/lib/utils/json.ts
- Command line
-
hf download hf://spaces/FallnAI/LLM-Inference@17c3edf3bbdc68f50a29f6cf9d6ef4168e935349/src/lib/utils/json.ts
-
curl -L -o json.ts https://huggingface.co/spaces/FallnAI/LLM-Inference/resolve/17c3edf3bbdc68f50a29f6cf9d6ef4168e935349/src/lib/utils/json.ts
105 Bytes
| export function safeParse(str: string) { | |
| try { | |
| return JSON.parse(str); | |
| } catch { | |
| return null; | |
| } | |
| } | |