import sqlite3 import json db = sqlite3.connect("config/tts_creator.db") c = db.cursor() names = ["Karyla", "Kolon", "Misira", "Uriens", "Karman", "Inquisitor", "Sklave", "Junge Ritterin", "Ork", "Gernot Brohm", "Kriegerin", "Magier", "Bäckerstochter", "Blautann und seine Männer", "Druide", "Krieger", "Kutscher", "Reiter", "Turmwächter", "Verwundeter Soldat", "Wache", "Yonsus", "alter Weber"] prompts = [] for name in names: c.execute("SELECT sheet FROM characters WHERE name=?", (name,)) row = c.fetchone() if row: sheet = json.loads(row[0]) phys = sheet.get("physical", "") cloth = sheet.get("clothing", "") prompt = f"A tight square headshot portrait of {name}. Physical traits: {phys}. Clothing: {cloth}. Style: high quality painterly fantasy illustration, single face facing forward. Plain neutral parchment background. ONLY ONE PERSON, close-up on face and shoulders." print(f"{name}|{prompt}")