Spaces:
Sleeping
Sleeping
Update main.py
Browse files
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)
|