Spaces:
Sleeping
Sleeping
Commit History
-
Enhance Dockerfile and main.py for improved caching and health check endpoint
Arseniy SavinUpdated the Dockerfile to include additional system dependencies and set up writable cache directories for user data. Added environment variables to manage cache paths effectively. In main.py, introduced a new root endpoint to return a simple status check, improving the application's health monitoring capabilities.d7ee472 -
Refactor Dockerfile and main.py for faster-whisper integration
Arseniy SavinUpdated the Dockerfile to switch from alpine to python:3.11-slim, simplifying the build process and removing unnecessary build steps. Added installation of system dependencies and Python packages. In main.py, refactored the transcription logic to utilize the faster-whisper library, enhancing performance and simplifying the model loading process. Removed unused imports and improved error handling in the transcription endpoint.740950d
-
Refactor transcription logic to use n_threads parameter directly
Arseniy SavinUpdated the transcription function to accept n_threads as a keyword argument instead of num_proc. This change aligns with the pywhispercpp library's usage and improves clarity in the code.06664bd -
Add bearer token authentication to FastAPI application
Arseniy SavinImplemented SHA-256 token validation for secure access to endpoints. Added a default token hash and updated the health and transcribe routes to require authentication. This enhances security by ensuring only authorized users can access the application.a8277c5 -
Implement initial setup for Whisper.cpp FastAPI application with Docker support. Added Dockerfile, main application logic, requirements, and updated README with usage instructions and environment variables.
Arseniy Savin5aea4af