|
76 | 76 | },
|
77 | 77 | {
|
78 | 78 | "cell_type": "code",
|
79 |
| - "execution_count": 3, |
| 79 | + "execution_count": null, |
80 | 80 | "metadata": {
|
81 | 81 | "tags": []
|
82 | 82 | },
|
|
90 | 90 | "%pip install -q -U \"openvino>=2024.5.0\" \"openvino-tokenizers>=2024.5.0\" \"openvino-genai>=2024.5.0\"\n",
|
91 | 91 | "%pip install -q \"python-ffmpeg<=1.0.16\" \"ffmpeg\" \"moviepy\" \"transformers>=4.45\" \"git+https://github.com/huggingface/optimum-intel.git\" \"torch>=2.1\" --extra-index-url https://download.pytorch.org/whl/cpu\n",
|
92 | 92 | "%pip install -q -U \"yt_dlp>=2024.8.6\" soundfile librosa jiwer packaging\n",
|
93 |
| - "%pip install -q \"gradio>=4.19\" \"typing_extensions>=4.9\"\n", |
| 93 | + "%pip install -q -U \"gradio>=4.19\" \"typing_extensions>=4.9\"\n", |
94 | 94 | "\n",
|
95 | 95 | "if platform.system() == \"Darwin\":\n",
|
96 | 96 | " %pip install -q \"numpy<2.0\"\n",
|
|
387 | 387 | },
|
388 | 388 | {
|
389 | 389 | "cell_type": "code",
|
390 |
| - "execution_count": 8, |
| 390 | + "execution_count": null, |
391 | 391 | "metadata": {},
|
392 | 392 | "outputs": [],
|
393 | 393 | "source": [
|
|
413 | 413 | " input_video = VideoFileClip(str(video_file))\n",
|
414 | 414 | " duration = input_video.duration\n",
|
415 | 415 | " audio_file = video_file.stem + \".wav\"\n",
|
416 |
| - " input_video.audio.write_audiofile(audio_file, verbose=False, logger=None)\n", |
| 416 | + " input_video.audio.write_audiofile(audio_file, logger=None)\n", |
417 | 417 | " with open(audio_file, \"rb\") as f:\n",
|
418 | 418 | " inputs = f.read()\n",
|
419 | 419 | " audio = ffmpeg_read(inputs, 16000)\n",
|
|
0 commit comments