Skip to content

Commit

Permalink
update video url
Browse files Browse the repository at this point in the history
  • Loading branch information
openvino-dev-samples committed Dec 17, 2024
1 parent 316d3b2 commit dfd4aed
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions notebooks/multimodal-rag/multimodal-rag-llamaindex.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
" \"moviepy==1.0.3\" \\\n",
" \"librosa\" \\\n",
" \"python-ffmpeg<=1.0.16\" \\\n",
" \"yt-dlp\" \\\n",
" \"open_clip_torch\" \\\n",
" \"huggingface_hub\" \\\n",
" \"gradio>=4.44.1\" --extra-index-url https://download.pytorch.org/whl/cpu"
Expand Down Expand Up @@ -291,12 +290,12 @@
},
{
"cell_type": "code",
"execution_count": 21,
"execution_count": null,
"id": "093464db-893e-4813-a6cc-19473a1a890c",
"metadata": {},
"outputs": [],
"source": [
"video_url = \"https://www.youtube.com/watch?v=d_qvLDhkg00\"\n",
"video_url = \"https://github.com/user-attachments/assets/2e38afa5-ce3e-448c-ad1a-0e9471039ff1\"\n",
"output_video_path = \"./video_data/\"\n",
"output_folder = \"./mixed_data/\"\n",
"output_audio_path = \"./mixed_data/output_audio.wav\"\n",
Expand All @@ -305,7 +304,9 @@
"Path(output_folder).mkdir(parents=True, exist_ok=True)\n",
"\n",
"if not Path(filepath).exists():\n",
" !yt-dlp {video_url} -f best -o {filepath}"
" r = requests.get(video_url)\n",
" with Path(filepath).open(\"wb\") as f:\n",
" f.write(r.content)"
]
},
{
Expand Down

0 comments on commit dfd4aed

Please sign in to comment.