Spaces:
Sleeping
Sleeping
Commit
·
1615826
1
Parent(s):
551a5dc
fix: Mejoramos el prompt
Browse files- AGENTS.md +1 -1
- Dockerfile +1 -1
- src/{streamlit_app.py → app.py} +1 -1
AGENTS.md
CHANGED
|
@@ -9,7 +9,7 @@ Hosted on HuggingFace.
|
|
| 9 |
|
| 10 |
## Setup commands
|
| 11 |
- Install deps: `pipenv install`
|
| 12 |
-
- Start dev server: `pipenv run streamlit run .\src\
|
| 13 |
- Run tests: Tests doesn't exists yet
|
| 14 |
|
| 15 |
## Code style
|
|
|
|
| 9 |
|
| 10 |
## Setup commands
|
| 11 |
- Install deps: `pipenv install`
|
| 12 |
+
- Start dev server: `pipenv run streamlit run .\src\app.py`
|
| 13 |
- Run tests: Tests doesn't exists yet
|
| 14 |
|
| 15 |
## Code style
|
Dockerfile
CHANGED
|
@@ -18,4 +18,4 @@ EXPOSE 8501
|
|
| 18 |
|
| 19 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
| 20 |
|
| 21 |
-
ENTRYPOINT ["streamlit", "run", "src/
|
|
|
|
| 18 |
|
| 19 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
| 20 |
|
| 21 |
+
ENTRYPOINT ["streamlit", "run", "src/app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
src/{streamlit_app.py → app.py}
RENAMED
|
@@ -44,7 +44,7 @@ def precompletar_campos_con_ia(api_key, raw_text):
|
|
| 44 |
return {"error": f"Error al inicializar el cliente de Gemini: {e}"}
|
| 45 |
|
| 46 |
system_instruction = (
|
| 47 |
-
"Eres un
|
| 48 |
"- tipo_alerta: Título o tipo principal del problema\n"
|
| 49 |
"- sistema_afectado: Sistema, servicio o componente afectado\n"
|
| 50 |
"- fecha_hora: Fecha y hora de inicio del incidente\n"
|
|
|
|
| 44 |
return {"error": f"Error al inicializar el cliente de Gemini: {e}"}
|
| 45 |
|
| 46 |
system_instruction = (
|
| 47 |
+
"Eres un especialista Incident Response en Ciberseguridad. Analiza el siguiente texto de alerta/incidente y extrae los siguientes campos en formato JSON:\n"
|
| 48 |
"- tipo_alerta: Título o tipo principal del problema\n"
|
| 49 |
"- sistema_afectado: Sistema, servicio o componente afectado\n"
|
| 50 |
"- fecha_hora: Fecha y hora de inicio del incidente\n"
|