• Y
  • List All
  • Feedback
    • This Project
    • All Projects
Profile Account settings Log out
  • Favorite
  • Project
  • All
Loading...
  • Log in
  • Sign up
yjyoon / whisper_server_speaches star
  • Project homeH
  • CodeC
  • IssueI
  • Pull requestP
  • Review R
  • MilestoneM
  • BoardB
  • Files
  • Commit
  • Branches
whisper_server_speachessrcfaster_whisper_serverdependencies.py
Download as .zip file
File name
Commit message
Commit date
.github/workflows
chore(deps): update astral-sh/setup-uv action to v4
2024-12-16
docs
docs: initialize mkdocs
2024-10-03
examples
refactor(example): remove unnecessary dependencies
2024-11-02
scripts
chore: misc changes
2024-10-03
src/speaches
feat: support BatchedInferencePipeline (#169)
2024-12-17
tests
fix: piper is imported on ARM
2024-11-01
.dockerignore
chore: update .dockerignore
2024-11-01
.envrc
init
2024-05-20
.gitattributes
chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.7.2
2024-11-02
.gitignore
chore: update .gitignore
2024-07-03
.pre-commit-config.yaml
chore(deps): update pre-commit hook detachhead/basedpyright-pre-commit-mirror to v1.23.0
2024-12-16
Dockerfile.cpu
chore(deps): update ghcr.io/astral-sh/uv docker tag to v0.5.9
2024-12-16
Dockerfile.cuda
chore(deps): update ghcr.io/astral-sh/uv docker tag to v0.5.9
2024-12-16
LICENSE
init
2024-05-20
README.md
Improved readability in README.md
2024-10-09
Taskfile.yaml
chore: Taskfile changes
2024-11-01
audio.wav
docs: update README.md
2024-05-27
compose.yaml
chore: format compose
2024-09-11
flake.lock
deps: update flake
2024-11-01
flake.nix
deps: update `ctranslate2`
2024-11-01
mkdocs.yml
docs: initialize mkdocs
2024-10-03
pyproject.toml
feat: support BatchedInferencePipeline (#169)
2024-12-17
renovate.json
feat: renovate handle pre-commit
2024-11-01
uv.lock
feat: support BatchedInferencePipeline (#169)
2024-12-17
File name
Commit message
Commit date
routers
feat: support BatchedInferencePipeline (#169)
2024-12-17
__init__.py
feat: use `uv` package manager, pin dependencies
2024-09-08
api_models.py
refactor: update response model names and module name
2024-10-01
asr.py
feat: support BatchedInferencePipeline (#169)
2024-12-17
audio.py
feat: dependency injection
2024-09-22
config.py
feat: support BatchedInferencePipeline (#169)
2024-12-17
dependencies.py
feat: token based auth
2024-11-02
gradio_app.py
chore: fix some ruff errors
2024-10-01
hf_utils.py
feat: tts
2024-11-01
logger.py
chore: include line number in log messages
2024-11-01
main.py
feat: token based auth
2024-11-02
model_manager.py
feat: tts
2024-11-01
text_utils.py
feat: tts
2024-11-01
text_utils_test.py
refactor: update response model names and module name
2024-10-01
transcriber.py
refactor: update response model names and module name
2024-10-01
Fedir Zadniprovskyi 2024-11-02 0e60c81 feat: token based auth UNIX
Raw Open in browser Change history
from functools import lru_cache from typing import Annotated from fastapi import Depends, HTTPException, status from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer from faster_whisper_server.config import Config from faster_whisper_server.model_manager import PiperModelManager, WhisperModelManager @lru_cache def get_config() -> Config: return Config() ConfigDependency = Annotated[Config, Depends(get_config)] @lru_cache def get_model_manager() -> WhisperModelManager: config = get_config() # HACK return WhisperModelManager(config.whisper) ModelManagerDependency = Annotated[WhisperModelManager, Depends(get_model_manager)] @lru_cache def get_piper_model_manager() -> PiperModelManager: config = get_config() # HACK return PiperModelManager(config.whisper.ttl) # HACK PiperModelManagerDependency = Annotated[PiperModelManager, Depends(get_piper_model_manager)] security = HTTPBearer() async def verify_api_key( config: ConfigDependency, credentials: Annotated[HTTPAuthorizationCredentials, Depends(security)] ) -> None: if credentials.credentials != config.api_key: raise HTTPException(status_code=status.HTTP_403_FORBIDDEN) ApiKeyDependency = Depends(verify_api_key)

          
        
    
    
Copyright Yona authors & © NAVER Corp. & NAVER LABS Supported by NAVER CLOUD PLATFORM

or
Sign in with github login with Google Sign in with Google
Reset password | Sign up