Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
huggingface
/
inference-playground
like
302
Running
on
CPU Upgrade
App
Files
Files
Community
13
Fetching metadata from the HF Docker repository...
refs/pr/13
inference-playground
/
src
/
lib
/
utils
/
string.ts
Thomas G. Lopes
Checkpoints (#73)
7450ebd
unverified
about 1 year ago
Raw
Download with hf CLI
Copy download link
History
Blame
125 Bytes
export
function
pluralize
(
word:
string
, count:
number
):
string
{
if
(count ===
1
) {
return
word;
}
return
word +
"s"
;
}