""" Configuration settings for the image generation application. This module contains all the configuration parameters used throughout the application, making it easier to modify settings in one place. """ import numpy as np # Model settings MODEL_REPO_ID = "stabilityai/sdxl-turbo" DEFAULT_GUIDANCE_SCALE = 0.0 DEFAULT_INFERENCE_STEPS = 2 DEFAULT_WIDTH = 1024 DEFAULT_HEIGHT = 1024 # UI settings APP_TITLE = "ImageGen AI" APP_DESCRIPTION = "Generate stunning images from text descriptions using SDXL-Turbo" MAX_IMAGE_SIZE = 1024 MAX_SEED = np.iinfo(np.int32).max # Example prompts EXAMPLE_PROMPTS = [ "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k", "An astronaut riding a green horse", "A delicious ceviche cheesecake slice", "Futuristic cityscape at sunset with flying cars", "A serene mountain lake with reflections of pine trees" ] # CSS for UI styling CSS = """ #col-container { margin: 0 auto; max-width: 640px; } .output-image { border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); } .footer { text-align: center; margin-top: 20px; font-size: 0.8em; color: #666; } """