Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
huggingface/inference-playground
FallnAI
/
LLM-Inference
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
5853d12
LLM-Inference
/
src
/
lib
/
utils
/
json.ts
Thomas G. Lopes
minor improvements
5853d12
about 2 months ago
raw
Copy download link
history
blame
Wrap lines
110 Bytes
export
function
safeParse
(
str:
string
):
any
{
try
{
return
JSON
.
parse
(str);
}
catch
{
return
null
;
}
}