Skip to content

Commit

Permalink
Fix pyaudio issue on Google Colab
Browse files Browse the repository at this point in the history
  • Loading branch information
AliOsm committed Nov 1, 2024
1 parent 8c40fd7 commit 68a97b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion colab_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,12 @@
"print('جارٍ تجهيز بيئة العمل.')\n",
"\n",
"# Setup Tafrigh.\n",
"!apt-get install -q portaudio19-dev python3-pyaudio > pyaudio_fix_logs.txt\n",
"%pip install -U tafrigh[wit,whisper]==1.7.0 > install_logs.txt\n",
"\n",
"# Start: Quick fix related to Colab, HuggingFace, and faster-whisper.\n",
"!apt install libcublas11 > fix_logs.txt\n",
"!pip install ctranslate2==4.4.0 > ctranslate2_downgrade.txt\n",
"!pip install ctranslate2==4.4.0 > ctranslate2_downgrade_logs.txt\n",
"\n",
"from huggingface_hub.utils import _runtime\n",
"_runtime._is_google_colab = False\n",
Expand Down

0 comments on commit 68a97b5

Please sign in to comment.