Skip to content

Commit

Permalink
make quality
Browse files Browse the repository at this point in the history
  • Loading branch information
markurtz committed Jul 17, 2024
1 parent be9e83e commit b8ac185
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 2 additions & 4 deletions src/deepsparse/pipeline_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from typing import Any, Dict, List, Optional

from pydantic import BaseModel, Field, ConfigDict
from pydantic import BaseModel, ConfigDict, Field

from deepsparse.operators.engine_operator import DEEPSPARSE_ENGINE

Expand Down Expand Up @@ -86,6 +86,4 @@ class PipelineConfig(BaseModel):
)

# override name spaces due to model_ warnings in pydantic 2.X
model_config = ConfigDict(
protected_namespaces=()
)
model_config = ConfigDict(protected_namespaces=())
4 changes: 1 addition & 3 deletions src/deepsparse/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ class ModelMetaData(BaseModel):
model_path: str

# override name spaces due to model_ warnings in pydantic 2.X
model_config = ConfigDict(
protected_namespaces=()
)
model_config = ConfigDict(protected_namespaces=())


# For deepsparse endpoints, we bind the `predict`` and `predict_from_files` functions to
Expand Down

0 comments on commit b8ac185

Please sign in to comment.