You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"<a href=\"https://colab.research.google.com/github/therohitdas/Youtube-Transcript-Generator/blob/main/main.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
30
+
]
31
+
},
21
32
{
22
33
"cell_type": "markdown",
23
34
"source": [
@@ -48,7 +59,11 @@
48
59
"\n",
49
60
"## Environment Variables 🌐\n",
50
61
"\n",
51
-
"- `GOOGLE_API_KEY`: Set up your Google API key for video information retrieval. You will need to create a Project in the google cloud for this and enable the YouTube v3 API. This is optional, if you don't add it, the chapters will not be added.\n",
62
+
"- `YOUTUBE_API_KEY`: Set up your Google API key for video information retrieval. You will need to create a Project in the google cloud for this and enable the YouTube v3 API. This is optional, if you don't add it, the chapters will not be added.\n",
63
+
"\n",
64
+
"## Runtime\n",
65
+
"Please go to `Runtime > Change runtime type > Select T4 GPU`\n",
66
+
"This will ensure best performance. Without a gpu, the punctuation will be very slow and can take minutes.\n",
52
67
"\n",
53
68
"## Script Parameters 📜\n",
54
69
"```python\n",
@@ -96,12 +111,53 @@
96
111
"execution_count": null,
97
112
"outputs": []
98
113
},
114
+
{
115
+
"cell_type": "markdown",
116
+
"source": [
117
+
"**Example Usage:**\n",
118
+
"```python\n",
119
+
"url = 'https://www.youtube.com/watch?v=YOUR_VIDEO_ID' # youtu.be link works too\n",
120
+
"language = 'en'\n",
121
+
"punctuated = True # Default False, takes significantly more time when enabled on CPU, use T4 GPU type in google collab.\n",
122
+
"output_dir = '.' # add /content/drive/MyDrive/ to save content in You Google Drive\n",
123
+
"filename = \"\" # Leave empty for default filename: Video Title or Video Id\n",
124
+
"punctuation_model = '' # More info down below\n",
125
+
"verbose = True # To get logs\n",
126
+
"```\n",
127
+
"`language` use the language code to get the video. By default this module always picks manually created transcripts over automatically created ones, if a transcript in the requested language is available both manually created and generated.\n",
128
+
"\n",
129
+
"`punctuation_model` values can be found at https://huggingface.co/oliverguhr/fullstop-punctuation-multilang-large#languages\n",
130
+
"\n",
131
+
"After filling the cell below, press `CMD+F9` / `CTRL+F9` to run all cells."
"url = 'https://www.youtube.com/watch?v=YOUR_VIDEO_ID' # youtu.be link works too\n",
327
-
"language = 'en'\n",
328
-
"punctuated = True # Default False, takes significantly more time when enabled on CPU, use T4 GPU type in google collab.\n",
329
-
"output_dir = '.' # add /content/drive/MyDrive/ to save content in You Google Drive\n",
330
-
"filename = \"\" # Leave empty for default filename: Video Title or Video Id\n",
331
-
"punctuation_model = '' # More info down below\n",
332
-
"verbose = True # To get logs\n",
333
-
"```\n",
334
-
"`language` use the language code to get the video. By default this module always picks manually created transcripts over automatically created ones, if a transcript in the requested language is available both manually created and generated.\n",
335
-
"\n",
336
-
"`punctuation_model` values can be found at https://huggingface.co/oliverguhr/fullstop-punctuation-multilang-large#languages"
0 commit comments