#!/usr/bin/env python3 """ FM Face Generator GUI Launcher Simple launcher script for the GUI interface """ import sys import os def main(): """Launch the GUI application""" try: # Add current directory to path for imports current_dir = os.path.dirname(os.path.abspath(__file__)) if current_dir not in sys.path: sys.path.insert(0, current_dir) # Import and run the GUI from gui import main as gui_main print("Starting FM Face Generator GUI...") print("If you encounter any import errors, make sure to install requirements:") print("pip install -r requirements.txt") print() gui_main() except ImportError as e: print(f"Import Error: {e}") print("\nPlease install the required dependencies:") print("pip install -r requirements.txt") sys.exit(1) except Exception as e: print(f"Error starting GUI: {e}") print("\nTroubleshooting:") print("1. Make sure Python 3.8+ is installed") print("2. Install requirements: pip install -r requirements.txt") print("3. Check that all dependencies are available") sys.exit(1) if __name__ == "__main__": main()