root commited on
Commit
276589d
·
1 Parent(s): fbfb0a8
Files changed (3) hide show
  1. README.md +7 -0
  2. fix_dependencies.py +2 -1
  3. requirements.txt +2 -1
README.md CHANGED
@@ -54,6 +54,13 @@ This occurs due to version incompatibility between huggingface_hub and sentence_
54
  1. Run the dependency fixer script: `python fix_dependencies.py`
55
  2. Or manually install compatible versions: `pip install huggingface-hub==0.14.1 sentence-transformers==2.2.2`
56
 
 
 
 
 
 
 
 
57
  ## Running the Application
58
 
59
  ```bash
 
54
  1. Run the dependency fixer script: `python fix_dependencies.py`
55
  2. Or manually install compatible versions: `pip install huggingface-hub==0.14.1 sentence-transformers==2.2.2`
56
 
57
+ ### PydanticImportError: `pydantic:ConstrainedStr` has been removed in V2
58
+
59
+ This error occurs when using spaCy 3.5.0 with pydantic v2. To fix:
60
+
61
+ 1. Run the dependency fixer script: `python fix_dependencies.py`
62
+ 2. Or manually install a compatible pydantic version: `pip install "pydantic<2.0.0"`
63
+
64
  ## Running the Application
65
 
66
  ```bash
fix_dependencies.py CHANGED
@@ -20,7 +20,8 @@ def fix_dependencies():
20
  "plotly==5.14.1",
21
  "pandas==1.5.3",
22
  "numpy==1.24.3",
23
- "matplotlib==3.7.1"
 
24
  ]
25
 
26
  # Install each package
 
20
  "plotly==5.14.1",
21
  "pandas==1.5.3",
22
  "numpy==1.24.3",
23
+ "matplotlib==3.7.1",
24
+ "pydantic<2.0.0"
25
  ]
26
 
27
  # Install each package
requirements.txt CHANGED
@@ -9,4 +9,5 @@ nltk==3.8.1
9
  plotly==5.14.1
10
  pandas==1.5.3
11
  numpy==1.24.3
12
- matplotlib==3.7.1
 
 
9
  plotly==5.14.1
10
  pandas==1.5.3
11
  numpy==1.24.3
12
+ matplotlib==3.7.1
13
+ pydantic<2.0.0