Obtener subtítulos de un vídeo de Youtube con Python

Obtener subtítulos de un vídeo de Youtube con Python

Tiempo de lectura: 2 minutos Reading Time: < 1 minute Hello, today we’re going to learn how to get subtitles from a YouTube video using a Python library. The first thing we need to do is install the library: pip install youtube-transcript-api You can find this library here: https://pypi.org/project/youtube-transcript-api/ To use it and get the subtitles from a video, we ... Read more

Automate a Task with Ofelia Cron in Docker and FastAPI

Automate a Task with Ofelia Cron in Docker and FastAPI

Tiempo de lectura: < 1 minuto Reading Time: 1 minute Hello, today we are going to learn how to automate a task using Ofelia, FastAPI, and SQLAlchemy. The first thing we are going to do is create the file that we want to execute with Ofelia’s Cron: cron_execute.py # Create or get db_session from crud.operations_crud import operacion_crud_generar_estadisticas from config.connection import get_db … Read more

Get and Return PDF File Using FAST-API

Get and Return PDF File Using FAST-API

Tiempo de lectura: < 1 minuto Reading time: < 1 minute Hello, today we are going to see how we can retrieve a saved PDF file and return it using Fast API with Python. We go to our routes file and add the necessary dependencies (in addition to those of Fast API): import os from fastapi.responses import FileResponse Now we are ... Read more

Upload PDF File Using FAST-API

Upload PDF File Using FAST-API

Tiempo de lectura: < 1 minuto Reading time: < 1 minute Hello, today we are going to see how we can upload a PDF file using FAST-API. The first thing we need to do is install python multipart: install python-multipart Once installed, we need to go to our routes file and import this: import shutil Now we create this Route: @app.post("/_pdf", ... Read more

Install Llama 2, Meta’s Open Source and Commercializable AI that Competes with Chat GPT for Use with Python and Docker (with GPU Access)

Install Llama 2, Meta’s Open Source and Commercializable AI that Competes with Chat GPT for Use with Python and Docker (with GPU Access)

Tiempo de lectura: 3 minutos Reading time: 3 minutes Hello, today we are going to see how we can install and download llama 2, the AI from Meta that competes with chatgpt 3.5. To do this, I have created a Docker Compose that will help us set up the environment. The first thing we need to do is go to … Read more

Install Llama 2, the Meta Open Source and Commercializable AI that competes with Chat GPT for use with Python and Docker (with GPU access)

Install Llama 2, the Meta Open Source and Commercializable AI that competes with Chat GPT for use with Python and Docker (with GPU access)

Tiempo de lectura: 3 minutos Hello, today we will see how we can install and download llama 2, the Meta AI that competes with chatgpt 3.5. For this, I have created a Docker Compose that will help us set up the environment. The first thing we need to do is go to the llama 2 page and request a version … Read more

Using Pexels API with Python

Using Pexels API with Python

Tiempo de lectura: 4 minutos Reading Time: 2 minutes Hello, today we are going to learn how to use the Pexels API to retrieve images directly using Python. The first thing we need to do is obtain a free Pexels API key. Go to the API website: https://www.pexels.com/api/ First, sign in: Now go to your profile and navigate to Image … Read more