Add basic backend infrastructure
Signed-off-by: Felipe Cardoso <felipe.cardoso@hotmail.it>
This commit is contained in:
0
backend/app/services/__init__.py
Normal file
0
backend/app/services/__init__.py
Normal file
15
backend/app/services/sample_manager.py
Normal file
15
backend/app/services/sample_manager.py
Normal 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
|
||||
13
backend/app/services/training_monitor.py
Normal file
13
backend/app/services/training_monitor.py
Normal 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
|
||||
Reference in New Issue
Block a user