Spaces:
Sleeping
Sleeping
Update requirements.txt
Browse files- requirements.txt +36 -24
requirements.txt
CHANGED
|
@@ -1,36 +1,48 @@
|
|
| 1 |
-
#
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
requests
|
|
|
|
|
|
|
| 5 |
|
| 6 |
-
#
|
| 7 |
-
#
|
|
|
|
|
|
|
| 8 |
gradio==4.44.1
|
| 9 |
|
| 10 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
openai
|
|
|
|
| 12 |
langchain
|
| 13 |
langchain-community
|
| 14 |
langchain-huggingface
|
| 15 |
-
faiss-cpu
|
| 16 |
sentence-transformers
|
| 17 |
-
|
| 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 |
-
#
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
-
|
| 33 |
-
python-
|
| 34 |
|
| 35 |
-
|
| 36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|