-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshit.py
More file actions
29 lines (18 loc) · 841 Bytes
/
shit.py
File metadata and controls
29 lines (18 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from workers.app_worker import yt_download_video_task, whisper_transcribe, groq_completion, ffmpeg_add_subtitle
# result = add.delay(4, 4)
# print(result.get())
# ret2 = (add.s(1, 2) | add.si(3,30)).apply_async()
# ret = (add.s(1, 2) | add.s(3)).apply_async()
# print(ret.get())
# print(ret2.get())
# task_dl_result = yt_download_video_task.apply_async(args=["https://www.youtube.com/shorts/tFKdZPvyOc8?feature=share"])
# task_dl_result.get()
# https://www.youtube.com/watch?v=VGL3RVzaTYA
res = (
yt_download_video_task.s("https://youtu.be/WrE4D-uu7YA") # ==> TODO must be less than 10mins ?
| whisper_transcribe.s()
| groq_completion.s()
| ffmpeg_add_subtitle.s()).apply_async()
print(res.get())
# res = (whisper_transcribe.s("d7753b76-b381-4ce0-81dc-cca16f1798d8")).apply_async()
# print(res.get())