tonychenxyz commited on
Commit
adef274
·
1 Parent(s): fb03baa

updated req

Browse files
Files changed (2) hide show
  1. app.py +3 -3
  2. requirements.txt +1 -1
app.py CHANGED
@@ -9,10 +9,10 @@ def install(package):
9
 
10
  try:
11
  import pydantic
12
- if pydantic.__version__ != '1.9.0':
13
- install('pydantic==1.9.0')
14
  except ImportError:
15
- install('pydantic==1.9.0')
16
 
17
  is_prod = True
18
  if os.environ.get('PROD_MODE') == 'local':
 
9
 
10
  try:
11
  import pydantic
12
+ if pydantic.__version__ != '2.0':
13
+ install('pydantic==2.0')
14
  except ImportError:
15
+ install('pydantic==2.0')
16
 
17
  is_prod = True
18
  if os.environ.get('PROD_MODE') == 'local':
requirements.txt CHANGED
@@ -16,5 +16,5 @@ deepfilternet
16
  pydub
17
  soundfile
18
  huggingface_hub
19
- pydantic==1.9.0
20
 
 
16
  pydub
17
  soundfile
18
  huggingface_hub
19
+ pydantic==2.0
20