Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -16,4 +16,5 @@ def read_json():
|
|
| 16 |
|
| 17 |
@app.get("/subtitle/")
|
| 18 |
def get_subtitle(vid: str):
|
| 19 |
-
|
|
|
|
|
|
| 16 |
|
| 17 |
@app.get("/subtitle/")
|
| 18 |
def get_subtitle(vid: str):
|
| 19 |
+
subtitle = fetchYoutubeSubtitle(vid)
|
| 20 |
+
return JSONResponse(content=subtitle)
|