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