Spaces:
Running
Running
Upload requirements.txt
Browse files- modules/requirements.txt +139 -0
modules/requirements.txt
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# === AKIRA V21 ULTIMATE - Requirements ===
|
| 2 |
+
# Versão: Janeiro 2025
|
| 3 |
+
# Arquitetura: Multi-API com fallback + BART Emotion Analysis + Aprendizado Contínuo
|
| 4 |
+
|
| 5 |
+
# ============================================================
|
| 6 |
+
# 🔥 CORE - Web Framework & API
|
| 7 |
+
# ============================================================
|
| 8 |
+
flask>=2.0.0,<4.0.0
|
| 9 |
+
flask-cors>=4.0.0
|
| 10 |
+
gunicorn>=21.0.0
|
| 11 |
+
loguru>=0.7.0
|
| 12 |
+
python-dotenv>=1.0.0
|
| 13 |
+
requests>=2.31.0
|
| 14 |
+
beautifulsoup4>=4.12.0
|
| 15 |
+
lxml>=5.0.0
|
| 16 |
+
|
| 17 |
+
# ============================================================
|
| 18 |
+
# 🤖 IA & ML - Multi-API Support
|
| 19 |
+
# ============================================================
|
| 20 |
+
# Google Gemini API (google.genai - nova API)
|
| 21 |
+
google-genai>=1.0.0
|
| 22 |
+
|
| 23 |
+
# Mistral API via requests (sem cliente deprecated)
|
| 24 |
+
# A API é chamada diretamente via HTTP, sem precisar da biblioteca mistralai
|
| 25 |
+
|
| 26 |
+
# Groq API
|
| 27 |
+
groq>=0.4.0,<1.0.0
|
| 28 |
+
|
| 29 |
+
# Cohere API
|
| 30 |
+
cohere>=5.0.0,<6.0.0
|
| 31 |
+
|
| 32 |
+
# Together AI (compatible with OpenAI SDK)
|
| 33 |
+
openai>=1.0.0,<2.0.0
|
| 34 |
+
|
| 35 |
+
# HuggingFace Hub - versão COMPATÍVEL (não usa snapshot_download)
|
| 36 |
+
# ⚠️ IMPORTANTE: sentence-transformers 2.2.2+ não usa mais cached_download
|
| 37 |
+
huggingface-hub>=0.28.1
|
| 38 |
+
|
| 39 |
+
# Transformers core (BERT, BART, etc.) - MANTIDO A PEDIDO DO UTILIZADOR
|
| 40 |
+
transformers>=4.38.0,<4.50.0
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
# PyTorch - versão estável e compatível - MANTIDO A PEDIDO
|
| 45 |
+
torch>=2.1.0,<2.6.0
|
| 46 |
+
peft>=0.7.0
|
| 47 |
+
bitsandbytes>=0.41.0
|
| 48 |
+
|
| 49 |
+
# Sentence Transformers - versão mais recente compatível - MANTIDO A PEDIDO
|
| 50 |
+
sentence-transformers>=2.2.2,<3.0.0
|
| 51 |
+
|
| 52 |
+
# ============================================================
|
| 53 |
+
# 📊 NLP & Text Processing
|
| 54 |
+
# ============================================================
|
| 55 |
+
numpy>=1.26.0,<2.0.0
|
| 56 |
+
nltk>=3.8.1,<3.10.0
|
| 57 |
+
spacy>=3.7.0,<4.0.0
|
| 58 |
+
# Modelos pt_core_news_lg serão baixados automaticamente
|
| 59 |
+
accelerate>=0.20.0
|
| 60 |
+
|
| 61 |
+
# ============================================================
|
| 62 |
+
# 🔌 Utilities & Integration
|
| 63 |
+
# ============================================================
|
| 64 |
+
requests>=2.31.0
|
| 65 |
+
python-dotenv>=1.0.0
|
| 66 |
+
tqdm>=4.66.0
|
| 67 |
+
beautifulsoup4>=4.12.0
|
| 68 |
+
lxml>=5.0.0
|
| 69 |
+
|
| 70 |
+
# ============================================================
|
| 71 |
+
# 🗄️ Database
|
| 72 |
+
# ============================================================
|
| 73 |
+
# SQLite3 já vem com Python
|
| 74 |
+
# Opcional: Redis para cache (descomente se precisar)
|
| 75 |
+
# redis>=5.0.0
|
| 76 |
+
|
| 77 |
+
# ============================================================
|
| 78 |
+
# 📱 Web Search & Tools
|
| 79 |
+
# ============================================================
|
| 80 |
+
googlesearch-python>=1.1.0
|
| 81 |
+
ddgs>=5.3.0
|
| 82 |
+
|
| 83 |
+
# deepgram-sdk>=3.0.0 # Para STT (opcional)
|
| 84 |
+
# google-cloud-texttospeech>=2.0.0 # Para TTS (opcional)
|
| 85 |
+
|
| 86 |
+
# ============================================================
|
| 87 |
+
# 👁️ VISÃO COMPUTACIONAL & OCR
|
| 88 |
+
# ============================================================
|
| 89 |
+
# OpenCV headless - versão sem GUI, otimizada para servidores
|
| 90 |
+
opencv-python-headless>=4.8.0,<4.10.0
|
| 91 |
+
|
| 92 |
+
# Pillow - Manipulação de imagens PIL
|
| 93 |
+
pillow>=10.0.0,<11.0.0
|
| 94 |
+
|
| 95 |
+
# Tesseract OCR wrapper Python
|
| 96 |
+
pytesseract>=0.3.10
|
| 97 |
+
|
| 98 |
+
# Tesseract binary (Linux)
|
| 99 |
+
# Instalado via apt no Dockerfile:
|
| 100 |
+
# apt-get install tesseract-ocr tesseract-ocr-por tesseract-ocr-eng
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
# ============================================================
|
| 104 |
+
# 🎨 Media & QR Codes
|
| 105 |
+
# ============================================================
|
| 106 |
+
pillow>=10.0.0,<11.0.0
|
| 107 |
+
qrcode>=7.4.2,<8.0.0
|
| 108 |
+
|
| 109 |
+
# ============================================================
|
| 110 |
+
# ⚡ Performance & Monitoring
|
| 111 |
+
# ============================================================
|
| 112 |
+
# APScheduler>=7.0.0 # Para tarefas agendadas (opcional)
|
| 113 |
+
# prometheus-client>=0.19.0 # Para métricas (opcional)
|
| 114 |
+
|
| 115 |
+
# ============================================================
|
| 116 |
+
# 🧪 Testing (dev only - descomente se necessário)
|
| 117 |
+
# ============================================================
|
| 118 |
+
# pytest>=7.4.0
|
| 119 |
+
# pytest-cov>=4.1.0
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
# ============================================================
|
| 123 |
+
# 📝 NOTAS DE COMPATIBILIDADE (CRÍTICO!)
|
| 124 |
+
# ============================================================
|
| 125 |
+
#
|
| 126 |
+
# Para AKIRA V21 ULTIMATE:
|
| 127 |
+
# - sentence-transformers>=2.2.2 usa huggingface_hub.file_download
|
| 128 |
+
# - huggingface-hub>=0.23.0 não tem cached_download
|
| 129 |
+
# - Se tiver erro de import, atualize os pacotes:
|
| 130 |
+
#
|
| 131 |
+
# Exemplo de instalação limpa:
|
| 132 |
+
# pip install --upgrade pip
|
| 133 |
+
# pip install "sentence-transformers>=2.2.2"
|
| 134 |
+
# pip install "huggingface-hub>=0.23.0,<0.27.0"
|
| 135 |
+
# pip install "transformers>=4.38.0"
|
| 136 |
+
# pip install "torch>=2.1.0"
|
| 137 |
+
#
|
| 138 |
+
# ============================================================
|
| 139 |
+
|