Spaces:
Running
Running
Correccion nltk
Browse files- Dockerfile +0 -2
- app.py +4 -0
Dockerfile
CHANGED
|
@@ -34,8 +34,6 @@ RUN pip install --upgrade pip && \
|
|
| 34 |
# Copiar el código del proyecto
|
| 35 |
COPY . .
|
| 36 |
|
| 37 |
-
# Descargar recursos NLTK necesarios durante el build
|
| 38 |
-
RUN python -c "import nltk; nltk.download('punkt', quiet=True); nltk.download('punkt_tab', quiet=True)"
|
| 39 |
|
| 40 |
# Puerto que expone la app
|
| 41 |
EXPOSE 8050
|
|
|
|
| 34 |
# Copiar el código del proyecto
|
| 35 |
COPY . .
|
| 36 |
|
|
|
|
|
|
|
| 37 |
|
| 38 |
# Puerto que expone la app
|
| 39 |
EXPOSE 8050
|
app.py
CHANGED
|
@@ -3,11 +3,15 @@ AIM Dashboard — Punto de entrada principal.
|
|
| 3 |
Ejecutar con: python app.py
|
| 4 |
"""
|
| 5 |
|
|
|
|
|
|
|
|
|
|
| 6 |
import logging
|
| 7 |
import dash
|
| 8 |
import dash_bootstrap_components as dbc
|
| 9 |
from dash import dcc, html
|
| 10 |
|
|
|
|
| 11 |
from layouts.pages import layout_home, all_layouts
|
| 12 |
from callbacks.navegacion import registrar_callbacks
|
| 13 |
|
|
|
|
| 3 |
Ejecutar con: python app.py
|
| 4 |
"""
|
| 5 |
|
| 6 |
+
import nltk
|
| 7 |
+
nltk.download('punkt', quiet=True)
|
| 8 |
+
nltk.download('punkt_tab', quiet=True)
|
| 9 |
import logging
|
| 10 |
import dash
|
| 11 |
import dash_bootstrap_components as dbc
|
| 12 |
from dash import dcc, html
|
| 13 |
|
| 14 |
+
|
| 15 |
from layouts.pages import layout_home, all_layouts
|
| 16 |
from callbacks.navegacion import registrar_callbacks
|
| 17 |
|