feat(api): enable request header handling in Gradio MCP server
Enrique Cardoza
473f76d
- Add support for extracting and utilizing Authorization headers
- Create dedicated function to view all request headers for debugging
- Add new UI tab for inspecting incoming HTTP headers
- Modify transcription functions to accept and process request headers
- Enable API key extraction from Bearer tokens in Authorization header
- Improve server configuration with explicit host and port settings
- Enable API documentation with show_api flag
- Add new transcribe_audio_from_url function for processing audio from URLs
- Implement URL validation with extension and size checks
- Create tabbed interface separating upload and URL methods
- Add functionality to download and process remote audio files
- Reorganize UI to share API key input between both methods
- Add URL-specific requirements and instructions
- Improve error handling for network operations
- Implement temp file management for downloaded audio
feat(auth): add environment variable support for GROQ_API_KEY
Enrique Cardoza
80bdfa1
- Add support for GROQ_API_KEY environment variable as primary API key source
- Fall back to user-provided API key in the UI when env var is not set
- Update error message to mention both authentication options
- Add informational note in UI when environment variable is detected
- Update placeholder text to guide users on both authentication methods
- Improve overall flexibility for different deployment scenarios
feat(app): implement audio/video transcription with Groq API
Enrique Cardoza
6ec981e
- Replace letter counter with audio/video transcription functionality
- Implement two-column layout with upload controls and transcript display
- Add file validation for supported audio/video formats with 25MB size limit
- Integrate with Groq's Whisper-large-v3-turbo API for transcription
- Add secure API key input field with password protection
- Include helpful information and links for user guidance
- Implement comprehensive error handling with user-friendly messages
- Add detailed docstrings with MCP integration documentation
- Document input parameters with constraints and requirements
- Include usage examples to improve user understanding
- Format docstrings to comply with MCP protocol requirements
- Ensure proper tool exposure with mcp_server=True parameter