Spaces:
Runtime error
Runtime error
Download frontend/src/lib/utils.ts from numansaeed/FetalCLIP: direct link, hf CLI and curl.
- Browser
- Download file 336 Bytes
-
https://huggingface.co/spaces/numansaeed/FetalCLIP/resolve/main/frontend/src/lib/utils.ts
- Command line
-
hf download hf://spaces/numansaeed/FetalCLIP/frontend/src/lib/utils.ts
-
curl -L -o utils.ts https://huggingface.co/spaces/numansaeed/FetalCLIP/resolve/main/frontend/src/lib/utils.ts
336 Bytes
| import { clsx, type ClassValue } from 'clsx'; | |
| import { twMerge } from 'tailwind-merge'; | |
| export function cn(...inputs: ClassValue[]) { | |
| return twMerge(clsx(inputs)); | |
| } | |
| export function formatLabel(label: string): string { | |
| return label | |
| .split('_') | |
| .map(word => word.charAt(0).toUpperCase() + word.slice(1)) | |
| .join(' '); | |
| } | |