Download src/lib/api/physics-video.ts from asnannp/DocDoeAI: direct link, hf CLI and curl.
- Browser
- Download file 564 Bytes
-
https://huggingface.co/spaces/asnannp/DocDoeAI/resolve/main/src/lib/api/physics-video.ts
- Command line
-
hf download hf://spaces/asnannp/DocDoeAI/src/lib/api/physics-video.ts
-
curl -L -o physics-video.ts https://huggingface.co/spaces/asnannp/DocDoeAI/resolve/main/src/lib/api/physics-video.ts
564 Bytes
| import { apiGet } from "@/lib/api/client"; | |
| export type PhysicsChapterVideoStatus = { | |
| chapterId: string; | |
| title: string | null; | |
| status: string; | |
| ready: boolean; | |
| qaPassed: boolean; | |
| audioPresent: boolean; | |
| resolution: { width?: number; height?: number } | null; | |
| durationSeconds: number | null; | |
| downloadUrl: string | null; | |
| }; | |
| export function getPhysicsChapterVideoStatus(chapterId: string) { | |
| return apiGet<PhysicsChapterVideoStatus>( | |
| `/video/physics-curriculum/chapters/${encodeURIComponent(chapterId)}/video`, | |
| { cache: "no-store" }, | |
| ); | |
| } | |