Skip to content

Commit

Permalink
fix(ml): pydantic dep causes starting up issue (immich-app#11773)
Browse files Browse the repository at this point in the history
* fix(ml): pydantic dep causes starting up issue

* revert import
  • Loading branch information
alextran1502 authored Aug 14, 2024
1 parent 7f7fec2 commit fb962f4
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 129 deletions.
2 changes: 1 addition & 1 deletion machine-learning/app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from socket import socket

from gunicorn.arbiter import Arbiter
from pydantic.v1 import BaseModel, BaseSettings
from pydantic import BaseModel, BaseSettings
from rich.console import Console
from rich.logging import RichHandler
from uvicorn import Server
Expand Down
2 changes: 1 addition & 1 deletion machine-learning/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from fastapi.responses import ORJSONResponse
from onnxruntime.capi.onnxruntime_pybind11_state import InvalidProtobuf, NoSuchFile
from PIL.Image import Image
from pydantic.v1 import ValidationError
from pydantic import ValidationError
from starlette.formparsers import MultiPartParser

from app.models import get_model_deps
Expand Down
2 changes: 1 addition & 1 deletion machine-learning/app/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import numpy as np
import numpy.typing as npt
from pydantic.v1 import BaseModel
from pydantic import BaseModel


class StrEnum(str, Enum):
Expand Down
Loading

0 comments on commit fb962f4

Please sign in to comment.