- Added Textual-based TUI with file selection and progress monitoring - Implemented transcription service with OpenAI API and local Whisper backends - Added markdown formatter for transcription output - Configuration management for persistent API keys and output directory - Comprehensive README with installation and usage instructions - Support for multi-file batch processing - Beautiful terminal UI with modal dialogs for user input
27 lines
598 B
Python
27 lines
598 B
Python
#!/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()
|