Upload 2 files
Browse files- Dockerfile +14 -12
- requirements.txt +14 -48
Dockerfile
CHANGED
|
@@ -1,24 +1,26 @@
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
|
| 3 |
-
# SO deps necesarias para audio/v铆deo/OCR
|
| 4 |
-
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 5 |
-
ffmpeg libsndfile1 libsm6 libxext6 libgl1 tesseract-ocr build-essential \
|
| 6 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 7 |
-
|
| 8 |
WORKDIR /app
|
| 9 |
|
| 10 |
-
#
|
| 11 |
-
RUN
|
|
|
|
|
|
|
| 12 |
|
| 13 |
-
# Instala deps primero (mejor cacheo)
|
| 14 |
COPY requirements.txt /app/
|
| 15 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 16 |
|
| 17 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
COPY . /app
|
| 19 |
|
| 20 |
-
#
|
|
|
|
|
|
|
|
|
|
| 21 |
ENV PORT=7860
|
|
|
|
| 22 |
|
| 23 |
-
# Lanza FastAPI (ajusta si tu entrypoint NO es main_api.py)
|
| 24 |
-
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]
|
|
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
# Dependencias SO m铆nimas (ajusta si necesitas m谩s)
|
| 6 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 7 |
+
libgl1 \
|
| 8 |
+
ffmpeg && rm -rf /var/lib/apt/lists/*
|
| 9 |
|
|
|
|
| 10 |
COPY requirements.txt /app/
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
| 13 |
+
# 馃憠 F铆jate aqu铆: definimos HOME *antes* de copiar
|
| 14 |
+
ENV HOME=/app
|
| 15 |
+
ENV STREAMLIT_BROWSER_GATHERUSAGESTATS=false
|
| 16 |
+
|
| 17 |
+
# Copiamos el repo (incluye .streamlit/config.toml)
|
| 18 |
COPY . /app
|
| 19 |
|
| 20 |
+
# Cambiar el propietario para que el usuario de la app pueda escribir/borrar archivos
|
| 21 |
+
RUN chown -R 1000:1000 /app
|
| 22 |
+
|
| 23 |
+
# Puerto que usas en README.md
|
| 24 |
ENV PORT=7860
|
| 25 |
+
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|
| 26 |
|
|
|
|
|
|
requirements.txt
CHANGED
|
@@ -1,48 +1,14 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
#
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
#
|
| 15 |
-
torch==2.3.0
|
| 16 |
-
torchaudio==2.3.0
|
| 17 |
-
|
| 18 |
-
# Diarizaci贸n local
|
| 19 |
-
pyannote.audio==3.1.1
|
| 20 |
-
huggingface_hub>=0.23
|
| 21 |
-
|
| 22 |
-
# Audio / v铆deo
|
| 23 |
-
librosa>=0.10
|
| 24 |
-
soundfile>=0.12
|
| 25 |
-
pydub>=0.25
|
| 26 |
-
ffmpeg-python>=0.2
|
| 27 |
-
moviepy==2.0.0
|
| 28 |
-
|
| 29 |
-
# Visi贸n / OCR / CV
|
| 30 |
-
opencv-python-headless==4.10.0.84
|
| 31 |
-
scenedetect==0.5.6
|
| 32 |
-
pytesseract>=0.3
|
| 33 |
-
easyocr>=1.7
|
| 34 |
-
Pillow>=10.4
|
| 35 |
-
# face-recognition>=1.3.0 # Requires dlib/cmake - optional, handled gracefully in code
|
| 36 |
-
deepface>=0.0.79 # Necesario para detecci贸n de personajes
|
| 37 |
-
|
| 38 |
-
# Embeddings / ML
|
| 39 |
-
scikit-learn==1.4.2
|
| 40 |
-
sentence-transformers>=3.0
|
| 41 |
-
transformers==4.44.0
|
| 42 |
-
chromadb==0.5.4
|
| 43 |
-
tf-keras # Compatibilidad con Keras 3 para transformers
|
| 44 |
-
|
| 45 |
-
# LangChain / LangGraph
|
| 46 |
-
langgraph>=0.2.0
|
| 47 |
-
langchain-core>=0.3.0
|
| 48 |
-
langchain-openai>=0.2.0
|
|
|
|
| 1 |
+
streamlit>=1.36
|
| 2 |
+
requests
|
| 3 |
+
PyYAML
|
| 4 |
+
tomli # por si Python<3.11
|
| 5 |
+
pandas
|
| 6 |
+
pydub
|
| 7 |
+
python-dotenv
|
| 8 |
+
gradio_client # Para llamar al space svision
|
| 9 |
+
Pillow # Para procesar im谩genes antes de enviar a svision
|
| 10 |
+
opencv-python-headless>=4.10 # Necesario para obtener duraci贸n de v铆deo sin ffprobe
|
| 11 |
+
passlib[bcrypt]
|
| 12 |
+
streamlit-authenticator>=0.2.3
|
| 13 |
+
web3>=6.0.0 # Para integraci贸n con Polygon blockchain
|
| 14 |
+
# Forzar rebuild 2025-11-03
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|