Spaces:
Sleeping
Sleeping
Commit History
-
feat: Implement Whisper model preloading during FastAPI startup for optimized performance
- Added lifespan context manager to preload Whisper model on application startup. - Updated create_app function to include lifespan for preloading. - Enhanced health check endpoint to verify Whisper model loading status. - Refactored speaking_route to export preload function and added documentation. - Optimized post-assessment processing with asynchronous tasks for improved performance. - Created example application demonstrating Whisper preloading integration. - Updated performance test cases to reflect new API endpoint structure.cc06ed6
-
feat: Implement performance optimizations in speaking_route.py
- Added asynchronous processing for post-assessment tasks to reduce processing time. - Introduced shared instances for G2P and ThreadPoolExecutor to improve resource management. - Implemented caching for G2P results to avoid redundant computations. - Enhanced IPA assessment processing with parallel execution for character analysis, phoneme scoring, and focus phonemes analysis. - Created a performance testing script to validate optimizations and measure improvements. - Documented optimization strategies and performance metrics in PERFORMANCE_OPTIMIZATION.md.c9fd875