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

Function home

pstext/main.py:90–95  ·  view source on GitHub ↗
(request: Request, title: str = None, skip: int = 0, limit: int = 100, db: Session = Depends(get_db))

Source from the content-addressed store, hash-verified

88
89@application.get("/", response_model=schemas.ReadAudioData)
90async def home(request: Request, title: str = None, skip: int = 0, limit: int = 100, db: Session = Depends(get_db)):
91 data = crud.get_data(db, title=title, skip=skip, limit=limit)
92
93 return templates.TemplateResponse("home.html",
94 {"request": request,
95 "data": data})
96
97@application.get("/delete/{audio_id}")
98async def delete(request: Request, audio_id: int, db: Session = Depends(get_db)):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected