File size: 474 Bytes
0c52aa7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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>
);
}
|