File size: 997 Bytes
37d841f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# ─── Backend runtime (lo que necesita Flask para servir /api) ────────────────
#
# DEPENDENCIAS GESTIONADAS FUERA DE ESTE ARCHIVO (ver Dockerfile):
#   numpy==1.26.0   → se instala ANTES que torch para evitar downgrade implícito
#   torch/torchvision → pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
#   llama-cpp-python → pip install llama-cpp-python==0.3.2 --prefer-binary
#                        --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
#
# En desarrollo local (Windows, sin Docker) instálalas en ese orden antes de este archivo.

# Servidor
flask==3.0.0
flask-cors==4.0.0
gunicorn==21.2.0

# Vision pipeline (headless: sin libs GUI, ideal para servidor)
opencv-python-headless==4.9.0.80
numpy==1.26.0
Pillow==10.2.0

# OCR — TrOCR via HuggingFace
transformers>=4.40.0
tokenizers>=0.19.0
safetensors>=0.4.0
huggingface-hub>=0.20.0

# Validacion de jugadas (SAN → PGN)
chess==1.10.0