Project restructuring..

This commit is contained in:
timothyafolami
2024-08-14 23:09:10 +01:00
parent dbcb8da015
commit ae151a2eff
17 changed files with 281 additions and 26 deletions
+6 -3
View File
@@ -20,7 +20,7 @@
"import os\n",
"import ffmpeg\n",
"# importing module that prerocess the audio file \n",
"from data_ingestion.utils import create_audio_document\n"
"from utils import create_audio_document\n"
]
},
{
@@ -62,7 +62,7 @@
" os.makedirs(snapshot_dir, exist_ok=True)\n",
"\n",
" # Set the interval to 3 minutes (180 seconds)\n",
" interval = 180\n",
" interval = 30\n",
"\n",
" # Get the duration of the video using ffmpeg\n",
" probe = ffmpeg.probe(video_path)\n",
@@ -164,7 +164,10 @@
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
"source": [
"# [{filename: \"car repair.pdf\", pages: [12, 55, 356], description: \"lorem ipsum\", filetype:\"pdf\", thumbnail:\"carrepair.jpg\"}\n",
"# ,{filename: \"how to repair car.mp4\", pages: [12, 55, 356], description: \"lorem ipsum\", filetype:\"video\", thumbnail:\"how to repair car.jpg\"}]"
]
}
],
"metadata": {