Download src/components/study-chat/upload-guards.ts from asnannp/DocDoeAI: direct link, hf CLI and curl.
- Browser
- Download file 368 Bytes
-
https://huggingface.co/spaces/asnannp/DocDoeAI/resolve/main/src/components/study-chat/upload-guards.ts
- Command line
-
hf download hf://spaces/asnannp/DocDoeAI/src/components/study-chat/upload-guards.ts
-
curl -L -o upload-guards.ts https://huggingface.co/spaces/asnannp/DocDoeAI/resolve/main/src/components/study-chat/upload-guards.ts
368 Bytes
| import { | |
| validateStudentUpload, | |
| type StudentUploadFile, | |
| type StudentUploadKind, | |
| } from "@/lib/uploads/document-upload-contract"; | |
| export type StudyFileKind = Exclude<StudentUploadKind, "study-chat">; | |
| export type FileLike = StudentUploadFile; | |
| export function validateStudyFile(file: FileLike, kind: StudyFileKind) { | |
| return validateStudentUpload(file, kind); | |
| } | |