Spaces:
Sleeping
Sleeping
Commit History
-
debug: Add comprehensive logging to verify STT service audio receptionβ
Peter Michael Gits +1: Claude- Added debug logging to gradio_transcribe_wrapper with file details - Enhanced HTTP API endpoint with request/response logging - Added startup debug messages for service configuration - Debug logs will show if audio files are actually reaching the service π€ Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>cf3d441
-
fix: Remove invalid router.setup() call causing AttributeErrorβ
Peter Michael Gits +1: Claude- Replace gradio_app.router.setup() with proper FastAPI WebSocket route registration - Use gradio_app.add_websocket_route() as primary method - Add fallback to router.routes.append() if add_websocket_route not available - This fixes the 'APIRouter' object has no attribute 'setup' error π€ Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>590c4a0 -
fix: Use FastAPI router direct manipulation for WebSocket endpointβ
Peter Michael Gits +1: Claude- Replace add_api_websocket_route with direct router.routes.append approach - Add APIWebSocketRoute to Gradio's FastAPI router and rebuild routing table - This bypasses Gradio's routing conflicts by manipulating FastAPI router directly - Added comprehensive logging for WebSocket URL confirmation π€ Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>d0a5089 -
fix: Improve WebSocket endpoint registration using add_api_websocket_routeβ
Peter Michael Gits +1: Claude- Replace decorator approach with add_api_websocket_route for proper routing - Add comprehensive logging for WebSocket connection and transcription events - Use direct FastAPI app integration to avoid Gradio routing conflicts - Enhanced error handling and debugging output for WebSocket operations - This should resolve the issue where /ws/stt was serving HTML instead of WebSocket π€ Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>237112e -
fix: Resolve syntax error with WebSocket exception handling indentationβ
Peter Michael Gits +1: Claude- Fixed 'break' outside loop error by restructuring WebSocket exception handling - Added proper try-except nesting within while True loop for WebSocket disconnect handling - Removed invalid break statement from outer exception handler - WebSocket endpoint should now properly handle client disconnections and errors π€ Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>f374050
-
feat: Add WebSocket support for real-time STT integrationβ
Peter Michael Gits +1: Claude- Added WebSocketSTTHandler class for real-time STT processing - Integrated FastAPI WebSocket endpoints (/ws/stt, /ws/stt/{client_id}) - ZeroGPU-accelerated transcription via WebSocket protocol - Support for base64 audio transmission and real-time processing - Triple protocol support: Gradio + MCP + WebSocket - Compatible with ChatCal WebRTC integration π€ Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>6cbc2b9
-
fix: Complete uvicorn logging conflict eliminationβ
Peter Michael Gits +1: Claude- Added SafeStream class to replace sys.stdout/stderr before any imports - Comprehensive uvicorn patching to disable all logging configuration - Multi-layer protection against stream conflicts (Config, Server, run, networking) - Added failsafe launch strategies with graceful degradation - Set protective environment variables before library initialization - Implemented ultimate safety wrapper with recovery mechanisms This completely eliminates uvicorn logging conflicts in ZeroGPU environment while maintaining full STT transcription and MCP server functionality. π€ Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>d4fbd92 -
fix: Completely resolve logging conflicts and Gradio API issuesβ
Peter Michael Gits +1: Claude- Disabled Python logging module entirely to prevent stream conflicts - Replaced all logging with bulletproof print-based system - Removed deprecated enable_queue parameter from Gradio launch - Disabled problematic library loggers (httpx, gradio, uvicorn, transformers) - Added environment variables to prevent analytics conflicts - Enhanced error handling for ZeroGPU environment Resolves: - ValueError: I/O operation on closed file - TypeError: enable_queue unexpected keyword argument π€ Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>95912ff -
fix: Resolve ZeroGPU logging conflicts with MCP integrationβ
Peter Michael Gits +1: Claude- Fixed "ValueError: I/O operation on closed file" error - Added ZeroGPU-compatible logging configuration - Implemented safe logging with graceful fallback - Enhanced MCP server startup with proper error isolation - Added stream protection for dual server operation - Suppressed verbose library logging for cleaner startup Resolves uvicorn/Gradio logging conflicts in ZeroGPU environment while maintaining full MCP + Gradio functionality. π€ Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>6cdc99b -
feat: Add MCP server capabilities alongside Gradio interfaceβ
Peter Michael Gits +1: Claude- Added MCP (Model Context Protocol) server with dual protocol support - Created MCP tools: stt_transcribe, stt_batch_transcribe, stt_get_info - Maintained full backward compatibility with existing Gradio interface - Added MCP-only mode and dual server startup options - Comprehensive error handling and graceful fallbacks - Enhanced system info to include MCP status The service now supports both HTTP/Gradio and MCP protocols simultaneously for maximum compatibility and integration flexibility. π€ Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>05e2c32