PhilipL commited on
Commit
521d319
·
verified ·
1 Parent(s): b9925f1

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +36 -24
requirements.txt CHANGED
@@ -1,36 +1,48 @@
1
- # --- Core & Data ---
2
- numpy==1.26.4
3
- pandas
 
4
  requests
 
 
5
 
6
- # --- UI Framework ---
7
- # 採用組員指定版本以確保樣式正確,同時符合主程式 >=4.0.0 的需求
 
 
8
  gradio==4.44.1
9
 
10
- # --- RAG & LLM (Main App) ---
 
 
 
 
 
 
 
11
  openai
 
12
  langchain
13
  langchain-community
14
  langchain-huggingface
15
- faiss-cpu
16
  sentence-transformers
17
- huggingface_hub
18
-
19
- # --- Computer Vision & DeepFace (Teammate Logic) ---
20
- deepface==0.0.92
21
- mtcnn==0.1.1
22
- pillow==10.4.0
23
-
24
- # 雲端環境必須使用 headless 版本,避免 GUI 錯誤
25
- opencv-python-headless==4.10.0.84
26
 
27
- # DeepFace 依賴項 (固定版本以確保相容性)
28
- tensorflow==2.15.1
29
- tf-keras==2.15.1
30
- keras==2.15.0
 
 
 
31
 
32
- playwright
33
- python-dotenv
34
 
35
- duckduckgo-search
36
- opencv-python-headless
 
 
 
 
 
1
+ # =========================================
2
+ # 1. 核心與資料處理 (Core & Data)
3
+ # =========================================
4
+ python-dotenv
5
  requests
6
+ numpy
7
+ pandas
8
 
9
+ # =========================================
10
+ # 2. 使用者介面 (UI Framework)
11
+ # =========================================
12
+ # 採用您指定的版本,確保組員的 emotion.py 樣式相容
13
  gradio==4.44.1
14
 
15
+ # =========================================
16
+ # 3. 網路爬蟲 (Web Scraping)
17
+ # =========================================
18
+ playwright
19
+
20
+ # =========================================
21
+ # 4. RAG 與 LLM 應用 (AI Logic)
22
+ # =========================================
23
  openai
24
+ huggingface_hub
25
  langchain
26
  langchain-community
27
  langchain-huggingface
 
28
  sentence-transformers
29
+ # 向量資料庫 (務必使用 CPU 版)
30
+ faiss-cpu
 
 
 
 
 
 
 
31
 
32
+ # =========================================
33
+ # 5. 情緒辨識與影像處理 (Computer Vision)
34
+ # =========================================
35
+ # emotion.py 依賴的核心庫
36
+ deepface
37
+ mtcnn
38
+ pillow
39
 
40
+ # 雲端環境必須使用 headless 版本 (無 GUI),避免 server 報錯
41
+ opencv-python-headless
42
 
43
+ # =========================================
44
+ # 6. 深度學習底層 (Deep Learning Backend)
45
+ # =========================================
46
+ # 使用 CPU 版本以節省空間並提升安裝速度
47
+ tensorflow-cpu
48
+ tf-keras