Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
jbilcke-hf
/
ai-tube
like
273
Running
on
CPU Upgrade
App
Files
Files
Community
9
0bf0c48
ai-tube
/
src
/
app
/
api
/
utils
/
parsePromptFileName.ts
jbilcke-hf
HF staff
working on some new features
3d4392e
6 months ago
raw
Copy download link
history
blame
No virus
139 Bytes
export
function
parsePromptFileName
(
filePath:
string
):
string
{
return
(filePath ||
""
).
replaceAll
(
"prompt_"
,
""
).
replaceAll
(
".md"
,
""
)
}