""" Character Forge - AI Image Generation Platform ============================================== License: GNU AGPL v3.0 Copyright (C) 2025 Gregor Hubert, Max Koch "cronos3k" This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This is the main entry point for Character Forge on HuggingFace Spaces. For local installation, see README.md """ import sys import os from pathlib import Path # Add character_forge_image to Python path so imports work correctly app_dir = Path(__file__).parent / "character_forge_image" sys.path.insert(0, str(app_dir)) # Change to the app directory so relative imports work os.chdir(str(app_dir)) # Now import and run the main app if __name__ == "__main__": # Import here after path setup import streamlit as st from app import main main()