diff --git a/avoid-shutdown.ipynb b/avoid-shutdown.ipynb index 6a7a402..1190b3d 100644 --- a/avoid-shutdown.ipynb +++ b/avoid-shutdown.ipynb @@ -5,7 +5,15 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "## Avoid automatic shutdown of the instance" + "## Mangio-RVC-Fork" + ] + }, + { + "attachments": {}, + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Prevent Interactivity Automatic Shutdown" ] }, { @@ -17,47 +25,6 @@ "import time\n", "time.sleep(1000 * 60 * 60 * 24)" ] - }, - { - "attachments": {}, - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Upload your model to HuggingFace\n", - "\n", - "Since using Git LFS will fill up the storage, we programmatically upload the model to HuggingFace." - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "from huggingface_hub import login\n", - "login()" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "from huggingface_hub import HfApi, CommitOperationAdd, CommitOperationDelete\n", - "from pathlib import Path\n", - "api = HfApi()\n", - "operations = [\n", - " CommitOperationAdd(path_in_repo=x, path_or_fileobj=x) for x in Path(\"logs/44k\").rglob(\"*.pth\")\n", - "]\n", - "api = HfApi()\n", - "api.create_commit(\n", - " repo_id=\"username/model_name\",\n", - " operations=operations,\n", - " commit_message=\"feat: add models\",\n", - " create_pr=1,\n", - ")" - ] } ], "metadata": {