Muhammad Naufal Rizqullah commited on
Commit
0a8bed4
·
1 Parent(s): 8bffc82

add pydantic setting for newer

Browse files
Files changed (2) hide show
  1. config/core.py +1 -1
  2. requirements.txt +2 -1
config/core.py CHANGED
@@ -1,4 +1,4 @@
1
- from pydantic import BaseSettings
2
 
3
  class Config(BaseSettings):
4
  IMAGE_CHANNEL: int = 3
 
1
+ from pydantic_settings import BaseSettings
2
 
3
  class Config(BaseSettings):
4
  IMAGE_CHANNEL: int = 3
requirements.txt CHANGED
@@ -1,4 +1,5 @@
1
  torch==2.1.2
2
  pytorch-lightning==2.3.3
3
  python-multipart
4
- pydantic==1.10.12
 
 
1
  torch==2.1.2
2
  pytorch-lightning==2.3.3
3
  python-multipart
4
+ pydantic
5
+ pydantic-settings