MCPcopy Create free account
hub / github.com/chinobing/FastAPI-PaddleSpeech-Audio-To-Text / get_db

Function get_db

pstext/main.py:32–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30audio_output_path = audio_save_path / "output"
31
32def get_db():
33 db = SessionLocal()
34 try:
35 yield db
36 finally:
37 db.close()
38
39# FastAPI BackgroundTasks
40def bg_task(file_path: FilePath, title: str, db: Session):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected