Spaces:
Runtime error
Runtime error
Commit
·
59df73b
1
Parent(s):
3058fd7
Update main.py
Browse files
main.py
CHANGED
@@ -26,9 +26,6 @@ def segment_to_dict(segment):
|
|
26 |
segment["words"] = [word._asdict() for word in segment["words"]]
|
27 |
return segment
|
28 |
|
29 |
-
def ng_path(text):
|
30 |
-
return ngrok_tunnel.public_url
|
31 |
-
|
32 |
@app.post("/video")
|
33 |
async def download_video(video_url: str):
|
34 |
download_convert_video_to_audio(yt_dlp, video_url, f"/home/user/{uuid.uuid4().hex}")
|
|
|
26 |
segment["words"] = [word._asdict() for word in segment["words"]]
|
27 |
return segment
|
28 |
|
|
|
|
|
|
|
29 |
@app.post("/video")
|
30 |
async def download_video(video_url: str):
|
31 |
download_convert_video_to_audio(yt_dlp, video_url, f"/home/user/{uuid.uuid4().hex}")
|