From 78cc7e424de1de5c66ab1b77811133c8ea5c8859 Mon Sep 17 00:00:00 2001 From: maksim Date: Wed, 18 Dec 2024 21:29:26 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B8=D0=BD=D0=B8=20=D1=84=D0=B8=D0=BA?= =?UTF-8?q?=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastapi-app/database.py | 2 +- fastapi-app/schemas.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fastapi-app/database.py b/fastapi-app/database.py index 80c1439..bf01d92 100644 --- a/fastapi-app/database.py +++ b/fastapi-app/database.py @@ -32,7 +32,7 @@ class H5Model(Base): __tablename__ = "h5_models" id: Mapped[int] = mapped_column(primary_key=True) user_id: Mapped[int] = mapped_column(ForeignKey("users.id")) - model_path: Mapped[str] + path_model: Mapped[str] created_at: Mapped[datetime] = mapped_column(default=datetime.utcnow) user = relationship("User", back_populates="models") diff --git a/fastapi-app/schemas.py b/fastapi-app/schemas.py index 31f261a..27c9494 100644 --- a/fastapi-app/schemas.py +++ b/fastapi-app/schemas.py @@ -13,11 +13,11 @@ class CSVFileUpload(BaseModel): # H5ModelCreate: для добавления модели class H5ModelCreate(BaseModel): - model_path: str + path_model: str # ModelStatisticsCreate: для сохранения статистики модели class ModelStatisticsCreate(BaseModel): - model_id: int + id_model: int accuracy: float loss: float created_at: Optional[datetime] = None