|
49 | 49 | "[back to top ⬆️](#Table-of-contents:)"
|
50 | 50 | ]
|
51 | 51 | },
|
52 |
| - { |
53 |
| - "cell_type": "code", |
54 |
| - "execution_count": null, |
55 |
| - "metadata": {}, |
56 |
| - "outputs": [], |
57 |
| - "source": [ |
58 |
| - "import platform\n", |
59 |
| - "\n", |
60 |
| - "%pip install -q \"torch>=2.1\" \"torchaudio\" \"einops\" \"transformers>=4.46.1\" \"loguru\" \"inflect\" \"pesq\" \"torchcrepe\" \"natsort\" \"polars\" uroman mecab-python3 unidic-lite --extra-index-url https://download.pytorch.org/whl/cpu\n", |
61 |
| - "%pip install -q \"gradio>=4.19\" \"openvino>=2024.4.0\" \"tqdm\" \"pyyaml\" \"librosa\" \"soundfile\" \"nncf\"\n", |
62 |
| - "%pip install -q \"git+https://github.com/huggingface/optimum-intel.git\" --extra-index-url https://download.pytorch.org/whl/cpu\n", |
63 |
| - "\n", |
64 |
| - "if platform.system() == \"Darwin\":\n", |
65 |
| - " %pip install -q \"numpy<2.0.0\"" |
66 |
| - ] |
67 |
| - }, |
68 | 52 | {
|
69 | 53 | "cell_type": "code",
|
70 | 54 | "execution_count": null,
|
|
74 | 58 | "import requests\n",
|
75 | 59 | "from pathlib import Path\n",
|
76 | 60 | "\n",
|
77 |
| - "utility_files = [\"cmd_helper.py\", \"notebook_utils.py\"]\n", |
| 61 | + "utility_files = [\"cmd_helper.py\", \"notebook_utils.py\", \"pip_helper.py\"]\n", |
78 | 62 | "base_utility_url = \"https://raw.githubusercontent.com/openvinotoolkit/openvino_notebooks/latest/utils/\"\n",
|
79 | 63 | "\n",
|
80 | 64 | "for utility_file in utility_files:\n",
|
|
99 | 83 | "collect_telemetry(\"outetts-text-to-speech.ipynb\")"
|
100 | 84 | ]
|
101 | 85 | },
|
| 86 | + { |
| 87 | + "cell_type": "code", |
| 88 | + "execution_count": null, |
| 89 | + "metadata": {}, |
| 90 | + "outputs": [], |
| 91 | + "source": [ |
| 92 | + "import platform\n", |
| 93 | + "from pip_helper import pip_install\n", |
| 94 | + "\n", |
| 95 | + "pip_install(\n", |
| 96 | + " \"-q\",\n", |
| 97 | + " \"torch>=2.1\",\n", |
| 98 | + " \"torchaudio\",\n", |
| 99 | + " \"einops\",\n", |
| 100 | + " \"transformers>=4.46.1\",\n", |
| 101 | + " \"loguru\",\n", |
| 102 | + " \"inflect\",\n", |
| 103 | + " \"pesq\",\n", |
| 104 | + " \"torchcrepe\",\n", |
| 105 | + " \"natsort\",\n", |
| 106 | + " \"polars\",\n", |
| 107 | + " \"uroman\",\n", |
| 108 | + " \"mecab-python3\",\n", |
| 109 | + " \"unidic-lite\",\n", |
| 110 | + " \"--extra-index-url\",\n", |
| 111 | + " \"https://download.pytorch.org/whl/cpu\",\n", |
| 112 | + ")\n", |
| 113 | + "pip_install(\n", |
| 114 | + " \"-q\",\n", |
| 115 | + " \"gradio>=4.19\",\n", |
| 116 | + " \"openvino>=2024.4.0\",\n", |
| 117 | + " \"tqdm\",\n", |
| 118 | + " \"pyyaml\",\n", |
| 119 | + " \"librosa\",\n", |
| 120 | + " \"soundfile\",\n", |
| 121 | + " \"nncf\",\n", |
| 122 | + ")\n", |
| 123 | + "pip_install(\"-q\", \"git+https://github.com/huggingface/optimum-intel.git\", \"--extra-index-url\", \"https://download.pytorch.org/whl/cpu\")\n", |
| 124 | + "\n", |
| 125 | + "if platform.system() == \"Darwin\":\n", |
| 126 | + " pip_install(\"-q\", \"numpy<2.0.0\")" |
| 127 | + ] |
| 128 | + }, |
102 | 129 | {
|
103 | 130 | "cell_type": "code",
|
104 | 131 | "execution_count": null,
|
|
0 commit comments