refactor: move shared utilities to lib/shared/ sub-packages
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import TrainingHistory from './TrainingHistory.svelte';
|
||||
import { m } from '$lib/paraglide/messages.js';
|
||||
import type { TrainingRun } from '$lib/types/training.js';
|
||||
import type { TrainingRun } from '$lib/ocr/training.js';
|
||||
|
||||
interface TrainingInfo {
|
||||
availableBlocks?: number;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import TrainingHistory from './TrainingHistory.svelte';
|
||||
import { m } from '$lib/paraglide/messages.js';
|
||||
import type { TrainingRun } from '$lib/types/training.js';
|
||||
import type { TrainingRun } from '$lib/ocr/training.js';
|
||||
|
||||
interface TrainingInfo {
|
||||
availableSegBlocks?: number;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { m } from '$lib/paraglide/messages.js';
|
||||
import type { TrainingRun } from '$lib/types/training.js';
|
||||
import type { TrainingRun } from '$lib/ocr/training.js';
|
||||
|
||||
interface Props {
|
||||
runs: TrainingRun[];
|
||||
|
||||
13
frontend/src/lib/ocr/training.ts
Normal file
13
frontend/src/lib/ocr/training.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
export interface TrainingRun {
|
||||
id: string;
|
||||
status: 'QUEUED' | 'RUNNING' | 'DONE' | 'FAILED';
|
||||
personId?: string;
|
||||
blockCount: number;
|
||||
documentCount: number;
|
||||
modelName: string;
|
||||
errorMessage?: string;
|
||||
triggeredBy?: string;
|
||||
createdAt: string;
|
||||
completedAt?: string;
|
||||
cer?: number;
|
||||
}
|
||||
Reference in New Issue
Block a user