lanbogao commited on
Commit
ff53fa1
1 Parent(s): 465b2b5

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -15,6 +15,6 @@ def read_json():
15
 
16
 
17
  @app.get("/subtitle/")
18
- def get_subtitle(vid: str):
19
- subtitle = fetchYoutubeSubtitle(vid)
20
  return JSONResponse(content=subtitle)
 
15
 
16
 
17
  @app.get("/subtitle/")
18
+ async def get_subtitle(vid: str):
19
+ subtitle = await fetchYoutubeSubtitle(vid)
20
  return JSONResponse(content=subtitle)