Add basic backend infrastructure

Signed-off-by: Felipe Cardoso <felipe.cardoso@hotmail.it>
This commit is contained in:
2025-01-22 18:02:07 +01:00
parent 80c8537614
commit 805ed647cd
16 changed files with 179 additions and 0 deletions

View File

View File

@@ -0,0 +1,15 @@
from typing import List
from app.models.sample import Sample
class SampleManager:
async def list_samples(self, limit: int, offset: int) -> List[Sample]:
# Implementation for listing samples from SFTP
# This is a placeholder - actual implementation needed
pass
async def get_latest_samples(self, count: int) -> List[Sample]:
# Implementation for getting latest samples
# This is a placeholder - actual implementation needed
pass

View File

@@ -0,0 +1,13 @@
from app.models.training import TrainingStatus
class TrainingMonitor:
async def get_status(self) -> TrainingStatus:
# Implementation for parsing tqdm output
# This is a placeholder - actual implementation needed
pass
async def get_log(self):
# Implementation for getting recent log entries
# This is a placeholder - actual implementation needed
pass