Spaces:
Runtime error
Runtime error
Commit
·
adef274
1
Parent(s):
fb03baa
updated req
Browse files- app.py +3 -3
- requirements.txt +1 -1
app.py
CHANGED
@@ -9,10 +9,10 @@ def install(package):
|
|
9 |
|
10 |
try:
|
11 |
import pydantic
|
12 |
-
if pydantic.__version__ != '
|
13 |
-
install('pydantic==
|
14 |
except ImportError:
|
15 |
-
install('pydantic==
|
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==
|
20 |
|
|
|
16 |
pydub
|
17 |
soundfile
|
18 |
huggingface_hub
|
19 |
+
pydantic==2.0
|
20 |
|