jhj0517 commited on
Commit
0baf176
β€’
1 Parent(s): a97e9b5

updated notebook

Browse files
Files changed (1) hide show
  1. notebook/whisper-webui.ipynb +55 -5
notebook/whisper-webui.ipynb CHANGED
@@ -3,7 +3,24 @@
3
  {
4
  "cell_type": "markdown",
5
  "source": [
6
- "**This notebook has been updated in [here](https://github.com/jhj0517/Whisper-WebUI.git) !**"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  ],
8
  "metadata": {
9
  "id": "doKhBBXIfS21"
@@ -12,8 +29,8 @@
12
  {
13
  "cell_type": "code",
14
  "source": [
15
- "#@title #Check GPU\n",
16
- "#@markdown Some models may not function correctly on a CPU runtime. \n",
17
  "\n",
18
  "#@markdown so you should check your GPU setup before run.\n",
19
  "!nvidia-smi"
@@ -41,6 +58,39 @@
41
  "!pip install -r requirements.txt"
42
  ]
43
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  {
45
  "cell_type": "code",
46
  "execution_count": null,
@@ -52,14 +102,14 @@
52
  "source": [
53
  "#@title #Run\n",
54
  "#@markdown Once the installation is complete, you can use public URL that is displayed.\n",
55
- "!python app.py --share"
56
  ]
57
  }
58
  ],
59
  "metadata": {
60
  "colab": {
61
  "provenance": [],
62
- "gpuType": "A100"
63
  },
64
  "kernelspec": {
65
  "display_name": "Python 3",
 
3
  {
4
  "cell_type": "markdown",
5
  "source": [
6
+ "---\n",
7
+ "\n",
8
+ "πŸ“Œ **This notebook has been updated [here](https://github.com/jhj0517/Whisper-WebUI.git)!**\n",
9
+ "\n",
10
+ "πŸ–‹ **Author**: [jhj0517](https://github.com/jhj0517/Whisper-WebUI/blob/master/notebook/whisper-webui.ipynb)\n",
11
+ "\n",
12
+ "😎 **Support the Project**:\n",
13
+ "\n",
14
+ "If you find this project useful, please consider supporting it:\n",
15
+ "\n",
16
+ "<a href=\"https://www.buymeacoffee.com/jhj0517\" target=\"_blank\" style=\"margin-right: 10px;\">\n",
17
+ " <img src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" alt=\"Buy Me A Coffee\" width=\"158\" height=\"36\">\n",
18
+ "</a>\n",
19
+ "<a href=\"https://ko-fi.com/A0A7JSQRJ\" target=\"_blank\">\n",
20
+ " <img src=\"https://storage.ko-fi.com/cdn/kofi2.png?v=3\" alt=\"Buy Me a Coffee at ko-fi.com\" height=\"36\">\n",
21
+ "</a>\n",
22
+ "\n",
23
+ "---"
24
  ],
25
  "metadata": {
26
  "id": "doKhBBXIfS21"
 
29
  {
30
  "cell_type": "code",
31
  "source": [
32
+ "#@title #(Optional) Check GPU\n",
33
+ "#@markdown Some models may not function correctly on a CPU runtime.\n",
34
  "\n",
35
  "#@markdown so you should check your GPU setup before run.\n",
36
  "!nvidia-smi"
 
58
  "!pip install -r requirements.txt"
59
  ]
60
  },
61
+ {
62
+ "cell_type": "code",
63
+ "source": [
64
+ "#@title # (Optional) Configure arguments\n",
65
+ "#@markdown This section is used to configure some command line arguments.\n",
66
+ "\n",
67
+ "#@markdown You can simply ignore this section and the default values will be used.\n",
68
+ "\n",
69
+ "USERNAME = '' #@param {type: \"string\"}\n",
70
+ "PASSWORD = '' #@param {type: \"string\"}\n",
71
+ "DISABLE_FASTER_WHISPER = False #@param {type: \"boolean\"}\n",
72
+ "THEME = '' #@param {type: \"string\"}\n",
73
+ "\n",
74
+ "arguments = \"\"\n",
75
+ "if USERNAME:\n",
76
+ " arguments += f\" --username {USERNAME}\"\n",
77
+ "if PASSWORD:\n",
78
+ " arguments += f\" --password {PASSWORD}\"\n",
79
+ "if THEME:\n",
80
+ " arguments += f\" --theme {THEME}\"\n",
81
+ "if DISABLE_FASTER_WHISPER:\n",
82
+ " arguments += f\" --disable_faster_whisper\"\n",
83
+ "\n",
84
+ "\n",
85
+ "#@markdown If you wonder how these arguments are used, you can see the [Wiki](https://github.com/jhj0517/Whisper-WebUI/wiki/Command-Line-Arguments)."
86
+ ],
87
+ "metadata": {
88
+ "cellView": "form",
89
+ "id": "Qosz9BFlGui3"
90
+ },
91
+ "execution_count": 7,
92
+ "outputs": []
93
+ },
94
  {
95
  "cell_type": "code",
96
  "execution_count": null,
 
102
  "source": [
103
  "#@title #Run\n",
104
  "#@markdown Once the installation is complete, you can use public URL that is displayed.\n",
105
+ "!python app.py --share{arguments}"
106
  ]
107
  }
108
  ],
109
  "metadata": {
110
  "colab": {
111
  "provenance": [],
112
+ "gpuType": "T4"
113
  },
114
  "kernelspec": {
115
  "display_name": "Python 3",