Posts

Showing posts from September, 2024

COME TO CODE 2024

Image
The 2024 edition of come to code took place in Pignola (PZ), a beutiful place near Potenza, and my colleague and friend Stefano De Nardis and I had the honor of participating. This year we presented a talk about provisioning  focused on: Proxmox Cloudinit Vault Terraform Ansible PostgreSQL PgBackRest Zabbix Grafana Minio The goal of the talk was to show how to perform an automatic provisioning for a system installation composed  by: PostgreSQL primary PostgreSQL replica PgBackRest with backups and wals stored on buckets managed locally by Minio Zabbix with PostgreSQL templates already installed Grafana - with a viewer user with read-only permissions on the dashboards Here  below you can find the links to the talk:  Google Drive directory with slides and video showing the system running : link Github repository with all the files used for the presentation: link   Enjoy !!!

TRAPI : a simple python API to make good translations

Image
  TRAPI is an example of how with a few lines of Python code it is possible to create an API for doing translations. TRAPI uses a local model installed on your server; It is based on model takes    https://huggingface.co  . Inside the Python code you can find three example models, but you can find more on the URL written above. # Load model #model_name = 'Helsinki-NLP/opus-mt-tc-big-en-it' # english -> italian model_name = 'Helsinki-NLP/opus-mt-tc-big-en-fr' # english -> french #model_name = 'Helsinki-NLP/opus-mt-tc-big-en-es' # english -> spanish The API is based on flask that handles a form html with some code javascript .  Here below an example  of a translation from a wikipedia article: https://en.wikipedia.org/wiki/Linux The project is available on github:  https://github.com/sscotty71/trapi  Enjoy ;)