Skip to content

Instantly share code, notes, and snippets.

View jpsteege's full-sized avatar

jpsteege

View GitHub Profile
@hansvdam
hansvdam / convert_directory.py
Last active October 26, 2024 19:26
fotos van bonnentjes hernoemen met AI
import base64
import os
import openpyxl
from langchain.chains.transform import TransformChain
from langchain_community.chat_models import ChatOpenAI
from langchain_core.messages import HumanMessage
from openai.types import image_model
from pathlib import Path
from openpyxl.styles import PatternFill
from openpyxl.utils import get_column_letter
@shsdev
shsdev / simple_pseudonymization.py
Last active November 19, 2024 08:40
Simple pseudonymization of a column with name values in a pandas dataframe
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Requires pandas and numpy
# pip3 install pandas numpy
# and the Faker package:
# pip3 install Faker
from faker import Faker
import numpy as np