#!/usr/bin/env python3 """ Generate simple SVG avatars for the Dialekt-Konsil participants """ import os def create_avatar_svg(name, color, emoji, filename): """Create a simple SVG avatar with emoji and color background""" svg_content = f""" {emoji} """ with open(filename, 'w', encoding='utf-8') as f: f.write(svg_content) print(f"Created avatar for {name}: {filename}") # Create avatar directory os.makedirs("static/avatars", exist_ok=True) # Create avatars for each participant avatars = [ ("Ueli", "#b6e3f4", "🇨🇭", "static/avatars/ueli.svg"), ("Sepp", "#ffd5dc", "🥨", "static/avatars/sepp.svg"), ("Karl", "#c1ffc1", "🏰", "static/avatars/karl.svg"), ("Moderator", "#e0e0e0", "🎓", "static/avatars/moderator.svg") ] for name, color, emoji, filename in avatars: create_avatar_svg(name, color, emoji, filename) print("\nAll avatars created successfully!") print("These can be served as static files in the Gradio app")