Download src/lib/ui/displayNames.ts from asnannp/DocDoeAI: direct link, hf CLI and curl.
- Browser
- Download file 602 Bytes
-
https://huggingface.co/spaces/asnannp/DocDoeAI/resolve/main/src/lib/ui/displayNames.ts
- Command line
-
hf download hf://spaces/asnannp/DocDoeAI/src/lib/ui/displayNames.ts
-
curl -L -o displayNames.ts https://huggingface.co/spaces/asnannp/DocDoeAI/resolve/main/src/lib/ui/displayNames.ts
602 Bytes
| export function getStudentFacingSourceTitle(rawTitle: string, fallbackSubject?: string): string { | |
| if (!rawTitle) { | |
| return fallbackSubject ? `${fallbackSubject} Material` : "Study Material"; | |
| } | |
| const lower = rawTitle.toLowerCase(); | |
| if (lower.includes("final upload smoke")) { | |
| return "Photosynthesis Notes"; | |
| } | |
| if (lower.includes("launch verification")) { | |
| return "Uploaded Biology Source"; | |
| } | |
| if (lower.includes("debug pdf")) { | |
| return "Biology Study Material"; | |
| } | |
| if (lower.includes("http video pipeline check")) { | |
| return "Study Video"; | |
| } | |
| return rawTitle; | |
| } | |