/Bello

DS4A project

Primary LanguageHTML

DS4A project

Present historical information of the development plan of the municipality of Bello - Antioquia to facilitate the vision, and support the management of its administration.

Installation

Install libraries necessary for the project

pip install -r requirements.txt
pip install -r requirements2.txt

Run

Run this command to start the app.

streamlit run app.py

Architecture πŸš€

The architecture is based on AWS, the services used are:

  1. EC2 -> In which the main algorithms are housed.
  2. S3 Bucket -> The SIEE file uploaded by the municipalities is stored.
  3. Lambda -> Allows you to host the application that consumes the Twitter API.
  4. RDS -> A database is used in Postgress.

These instructions will allow you to know which services are used to deploy the entire application.

Check Deployment to know how to deploy the project.

Project Layout

As our application grows we would refactor our app.py file into multiple folders and files.

.
β”œβ”€β”€ app.py
β”œβ”€β”€ terridata_process.py
β”œβ”€β”€ listener_twitter.py
β”œβ”€β”€ class_PQRS.py
β”œβ”€β”€ emotionals.py
β”œβ”€β”€ main_twitter.py
β”œβ”€β”€ database_process.py
β”œβ”€β”€ graficar.py
β”œβ”€β”€ Preprocess.py
β”œβ”€β”€ Preprocess.py
β”œβ”€β”€ model
|   └── model
|       └── my_model_emtion.h5
β”œβ”€β”€ EmoLex
|   └── EmoLex
|       β”œβ”€β”€ anger.txt
|       β”œβ”€β”€ anticipation.txt
|       β”œβ”€β”€ disgust.txt
|       β”œβ”€β”€ fear.txt
|       β”œβ”€β”€ joy.txt
|       β”œβ”€β”€ negative.txt
|       β”œβ”€β”€ positive.txt
|       β”œβ”€β”€ sadness.txt
|       β”œβ”€β”€ surprise.txt
|       └── trust.txt
└── src
|   └── pages 
|       β”œβ”€β”€ pqrs.py
|       β”œβ”€β”€ home.py
|       β”œβ”€β”€ resources.py
|       β”œβ”€β”€ vision.py
|       └── about.py
└── Data
    └── Data 
        β”œβ”€β”€ consolidado_general_con_sectores_modelos.csv
        β”œβ”€β”€ consolidado_general_con_sectores.csv
        └── consolidado_para_percepcion.csv

Despliegue πŸ“¦

Run this command to deploy the app.

docker build -t ds4a 
docker-compose up -d

Twitter πŸ–₯

Here are some examples of twitter in the security area. The Tweet is in the native language of the country where it was implemented, Colombia.

  1. RT @EmpresarioVox: El Gobierno oculta que estamos totalmente a la deriva. Hace meses saltΓ³ la alarma en la Seguridad Social porque el gasto…
  2. RT @laurxweird: "conocΓ­ a esta belleza cuando estaba protegiendo a un hombre sin hogar de ser acosado por alguien de seguridad" Esta es mi…
  3. RT @CIDH: Por ΓΊltimo, la #CIDH reitera al Estado las recomendaciones formuladas durante su reciente visita in loco, especialmente la de lle…
  4. RT @GNB_Sucre: #OperaciΓ³nGarraOriental2020 Nuestros efectivos trabajan de manera articulada con cuerpos policiales para velar por tu segur…
  5. RT @Lautafym: La pandemia de las fuerzas de seguridad del mundo tiene mucho mΓ‘s tiempo de vigencia que cualquier otra. Es mΓ‘s difΓ­cil de cu…
  6. RT @diario24horas: El presidente AndrΓ©s Manuel LΓ³pez Obrador elogiΓ³ el trabajo realizado por titular de la SecretarΓ­a de Seguridad y Protec…
  7. RT @lqmhr: Tenemos un Canciller que no habla inglΓ©s. Es como tener, no sΓ©, una antropΓ³loga como Ministra de Seguridad. Espero no leer vuestros tweets hablando sobre las medidas de seguridad cuando sois los primeros que no las cumplΓ­s mΓ‘quinas
  8. RT @Millerrojas19: @RicardoMolanoV1 @qmoncaleano @MdeFrancisco12 @fdbedout @MeDicenWally Comparto. Totalmente En Colombia alcanzan un cargo…
  9. RT @lvillavicenciom: autoridad civil, es que sus miembros son formados ideolΓ³gicamente bajo los estertores de la doctrina de la seguridad n…

Built with πŸ› οΈ

Mention the tools you used to create your project

Video πŸ“–

ScreenShot

Versions πŸ“Œ

We use SemVer for versioning. For all available versions, see whattags in this repository.

Authors βœ’οΈ

You can also look at the list of all contributors who have participated in this project.

License πŸ“„

This project is under the License, see the file LICENSE.md more details.

Expressions of Gratitude🎁

  • Tell others about this project πŸ“’
  • Give thanks publicly πŸ€“.