{ "cells": [ { "cell_type": "markdown", "metadata": { "id": "39k2mOCNAh6J" }, "source": [ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/SociallyIneptWeeb/AICoverGen/blob/main/AICoverGen_colab.ipynb)" ] }, { "cell_type": "markdown", "source": [ "# AICoverGen WebUI\n", "\n", "Simply click `Runtime` in the top navigation bar and `Run all`. Wait for the output of the final cell to show the public gradio url and click on it." ], "metadata": { "id": "YYVAKuNBc-X4" } }, { "cell_type": "code", "execution_count": null, "metadata": { "id": "vC4gLMHI9xb3", "cellView": "form" }, "outputs": [], "source": [ "#@title Clone repository\n", "from IPython.display import clear_output, Javascript\n", "import codecs\n", "import threading\n", "import time\n", "cloneing=codecs.decode('uggcf://tvguho.pbz/FbpvnyylVarcgJrro/NVPbireTra.tvg','rot_13')\n", "!git clone $cloneing HRVC\n", "def update_timer_and_print():\n", " global timer\n", " while True:\n", " hours, remainder = divmod(timer, 3600)\n", " minutes, seconds = divmod(remainder, 60)\n", " timer_str = f'{hours:02}:{minutes:02}:{seconds:02}'\n", " print(f'\\rTimer: {timer_str}', end='', flush=True) # Print without a newline\n", " time.sleep(1)\n", " timer += 1\n", "timer = 0\n", "threading.Thread(target=update_timer_and_print, daemon=True).start()\n", "\n", "!rm -rf sample_data\n", "%cd HRVC\n", "clear_output()\n", "print(\"Done Cloning Repository\")" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "cellView": "form", "id": "odzpJHpr_PaF" }, "outputs": [], "source": [ "#@title Install requirements\n", "!pip install -q -r requirements.txt\n", "clear_output()\n", "print(\"Finished Installing Requirements\")\n", "!sudo apt update\n", "clear_output()\n", "print(\"Finished Updating\")\n", "!sudo apt install sox\n", "clear_output()\n", "print(\"Finsihed running this cell, proceed to the next cell\")" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "cellView": "form", "id": "SLWpcJc0AHSZ" }, "outputs": [], "source": [ "#@title Download MDXNet Vocal Separation and Hubert Base Models\n", "models=codecs.decode('fep/qbjaybnq_zbqryf.cl','rot_13')\n", "!python $models\n", "clear_output()\n", "print(\"Finished Downloading Voice Separation Model and Hubert Base Model\")" ] }, { "cell_type": "code", "source": [ "#@title Run WebUI\n", "runpice=codecs.decode('fep/jrohv.cl','rot_13')\n", "!python $runpice --share" ], "metadata": { "cellView": "form", "id": "NEglTq6Ya9d0" }, "execution_count": null, "outputs": [] } ], "metadata": { "accelerator": "GPU", "colab": { "provenance": [] }, "kernelspec": { "display_name": "Python 3", "name": "python3" }, "language_info": { "name": "python" } }, "nbformat": 4, "nbformat_minor": 0 }