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

Update main.py

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