Spaces:
No application file
No application file
File size: 2,680 Bytes
3883c60 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"private_outputs": true,
"provenance": [],
"gpuType": "T4"
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
},
"accelerator": "GPU"
},
"cells": [
{
"cell_type": "markdown",
"source": [
"## Before running\n",
"1. click on \"`Runtime`\".\n",
"2. click on \"`Change runtime type`\".\n",
"3. set \"`Hardware accelerator`\" to \"`GPU`\".\n",
"4. click on \"`save`\"."
],
"metadata": {
"id": "sdEMR6I1E8F3"
}
},
{
"cell_type": "code",
"source": [
"# @title Activate audio (prevents automatic shutdown) { display-mode: \"form\" }\n",
"%%html\n",
"<audio src=\"https://oobabooga.github.io/silence.m4a\" controls>"
],
"metadata": {
"id": "OM2iVlTZC8CN"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "4BNv3IMvDMjX"
},
"outputs": [],
"source": [
"#@title Setup { display-mode: \"form\" }\n",
"#@markdown 1. Clones https://github.com/gitmylo/audio-webui/\n",
"#@markdown 2. Cd's into `audio-webui`\n",
"#@markdown 3. Fix some google colab default packages\n",
"\n",
"!git clone https://github.com/gitmylo/audio-webui/\n",
"%cd audio-webui\n",
"\n",
"!pip uninstall tensorflow -y\n",
"!pip install --upgrade numpy==1.23.5"
]
},
{
"cell_type": "code",
"source": [
"#@title Launching { display-mode: \"form\" }\n",
"username = 'user' #@param {type:\"string\"}\n",
"#@markdown Default: \"`user`\"<br>\n",
"#@markdown Sets the username for the webui\n",
"\n",
"#@markdown\n",
"\n",
"password = 'password' #@param {type:\"string\"}\n",
"#@markdown Default: \"`pass`\", **please change this**<br>\n",
"#@markdown Sets the password for the webui\n",
"\n",
"#@markdown\n",
"\n",
"args = '' #@param {type:\"string\"}\n",
"#@markdown Default: empty<br>\n",
"#@markdown Sets the other args for the webui\n",
"\n",
"#@markdown\n",
"\n",
"args = f'-sv {args} -s -u \"{username}\" -p \"{password}\"'\n",
"!python main.py $args"
],
"metadata": {
"id": "LqmO0xhlJxVa"
},
"execution_count": null,
"outputs": []
}
]
}
|