#!/usr/bin/env python3 """Whisper Transcription TUI - Main entry point.""" import sys from pathlib import Path # Add src to path for imports sys.path.insert(0, str(Path(__file__).parent / "src")) from app import TranscriptionApp def main() -> None: """Run the transcription application.""" try: app = TranscriptionApp() app.run() except KeyboardInterrupt: print("\nApplication interrupted by user.") sys.exit(0) except Exception as e: print(f"Error: {str(e)}", file=sys.stderr) sys.exit(1) if __name__ == "__main__": main()