ramysaidagieb commited on
Commit
4219f31
·
verified ·
1 Parent(s): 6a5866e

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +8 -5
requirements.txt CHANGED
@@ -1,16 +1,19 @@
1
- # Core dependencies
2
  gradio==3.50.2
3
  pymupdf==1.23.0
4
  python-docx==0.8.11
5
  sentence-transformers==2.3.1
6
  faiss-cpu==1.7.4
 
 
7
  transformers==4.38.0
8
- pyarabic==0.6.14
 
9
 
10
  # Arabic processing
 
11
  arabic-reshaper==2.1.4
12
  python-bidi==0.4.2
13
 
14
- # Lightweight alternatives
15
- torch==2.0.0
16
- safetensors==0.4.0
 
1
+ # Core dependencies with verified compatible versions
2
  gradio==3.50.2
3
  pymupdf==1.23.0
4
  python-docx==0.8.11
5
  sentence-transformers==2.3.1
6
  faiss-cpu==1.7.4
7
+
8
+ # Transformers stack with resolved dependencies
9
  transformers==4.38.0
10
+ tokenizers==0.15.2
11
+ safetensors==0.4.1 # Updated to meet transformers' requirement
12
 
13
  # Arabic processing
14
+ pyarabic==0.6.14
15
  arabic-reshaper==2.1.4
16
  python-bidi==0.4.2
17
 
18
+ # Optimized torch installation
19
+ torch==2.2.1 --index-url https://download.pytorch.org/whl/cpu