Download web/src/app/page.tsx from Wizzas/SumProof: direct link, hf CLI and curl.
- Browser
- Download file 474 Bytes
-
https://huggingface.co/Wizzas/SumProof/resolve/main/web/src/app/page.tsx
- Command line
-
hf download hf://Wizzas/SumProof/web/src/app/page.tsx
-
curl -L -o page.tsx https://huggingface.co/Wizzas/SumProof/resolve/main/web/src/app/page.tsx
474 Bytes
| import { Suspense } from "react"; | |
| import { ScanReceipt } from "@/components/ScanReceipt"; | |
| import { loadReceipts } from "@/lib/data"; | |
| export default function ScanPage() { | |
| // Only what the scan page needs: the photo and the fine-tuned model's reading of each sample. | |
| const samples = loadReceipts().map(({ id, image, pred, flagged }) => ({ id, image, pred, flagged })); | |
| return ( | |
| <Suspense> | |
| <ScanReceipt samples={samples} /> | |
| </Suspense> | |
| ); | |
| } | |