VibecoderMcSwaggins's picture
feat(frontend): React + Vite + NiiVue frontend (replaces Gradio) (#32)
fbf73ff
raw
history blame
537 Bytes
import type { SegmentationResult, CasesResponse } from '../types'
export const mockCases: string[] = [
'sub-stroke0001',
'sub-stroke0002',
'sub-stroke0003',
]
export const mockCasesResponse: CasesResponse = {
cases: mockCases,
}
export const mockSegmentationResult: SegmentationResult = {
dwiUrl: 'http://localhost:7860/files/dwi.nii.gz',
predictionUrl: 'http://localhost:7860/files/prediction.nii.gz',
metrics: {
caseId: 'sub-stroke0001',
diceScore: 0.847,
volumeMl: 15.32,
elapsedSeconds: 12.5,
},
}