Spaces:
Sleeping
Sleeping
Update app.py
Browse files31 unmodified lines3233343536373839404142434433 unmodified lines7879808182838413 unmodified lines98991001011021031045 unmodified lines11011111211311411511611711811912012112212312412512612712898 unmodified lines22722822923023123223323423523623723823924031 unmodified linesstart_time = time.time()!nvidia-smi# Clone the repository using the complete phrase as the folder namemaville = "R"acat = "VC"juxxn = maville + acat!git clone https://github.com/IAHispano/Applio-Utilities ./Applio-$juxxn-Fork/utilsend_time = time.time()elapsed_time = end_time - start_time33 unmodified linessetup_environment(ForceUpdateDependencies, ForceTemporaryStorage)# Apparently fastapi is getting errors as of writing according to #help-rvc!pip install fastapi==0.88.0end_time_setup = time.time()elapsed_time_setup = end_time_setup - start_time_setup13 unmodified linescomplete_url = base_url + "/resolve/main/rmvpe.pt"# Download the file using the complete URL!wget {complete_url} -P {complete_phrase}end_time_clone = time.time()elapsed_time_clone = end_time_clone - start_time_clone5 unmodified linestotal_time = elapsed_time + elapsed_time_setup + elapsed_time_cloneprint(f"Total time taken: {total_time} seconds")!pip install -q stftpitchshift==1.5.1!pip install gradio==3.34.0!pip install yt-dlp!pip install pedalboard!pip install pathvalidate!pip install nltk!pip install edge-tts!pip install git+https://github.com/suno-ai/bark.git!pip install wget -q!pip install unidecode -q!pip install gtts!pip install pip install tensorboardXnamepython = "infer-web.py"98 unmodified linesdef tempus_killed_server():%cd ./Retrieval-based-{complete_phrase}%load_ext tensorboardclear_output()%tensorboard --logdir ./Applio-$juxxn-Fork/logs!mkdir -p ./Applio-$juxxn-Fork/audiosprint("Try")arguments = "--colab --pycmd python3"!python3 $namepython $argumentsif LoadBackupDrive:31 unmodified lines323334353637383940414233 unmodified lines7677787980818213 unmodified lines969798991001011025 unmodified lines10810911011111211311411511611711811912012112212312412598 unmodified lines22422522622722822923023123223323423523623731 unmodified linesstart_time = time.time()# Clone the repository using the complete phrase as the folder namemaville = "R"acat = "VC"juxxn = maville + acatos.system('git clone https://github.com/IAHispano/Applio-Utilities ./Applio-$juxxn-Fork/utils')end_time = time.time()elapsed_time = end_time - start_time33 unmodified linessetup_environment(ForceUpdateDependencies, ForceTemporaryStorage)# Apparently fastapi is getting errors as of writing according to #help-rvcos.system('pip install fastapi==0.88.0')end_time_setup = time.time()elapsed_time_setup = end_time_setup - start_time_setup13 unmodified linescomplete_url = base_url + "/resolve/main/rmvpe.pt"# Download the file using the complete URLos.system('wget {complete_url} -P {complete_phrase}')end_time_clone = time.time()elapsed_time_clone = end_time_clone - start_time_clone5 unmodified linestotal_time = elapsed_time + elapsed_time_setup + elapsed_time_cloneprint(f"Total time taken: {total_time} seconds")os.system("pip install -q stftpitchshift==1.5.1")os.system("pip install gradio==3.34.0")os.system("pip install yt-dlp")os.system("pip install pedalboard")os.system("pip install pathvalidate")os.system("pip install nltk")os.system("pip install edge-tts")os.system("pip install git+https://github.com/suno-ai/bark.git")os.system("pip install wget -q")os.system("pip install unidecode -q")os.system("pip install gtts")os.system("pip install tensorboardX")98 unmodified linesdef tempus_killed_server():os.system("cd ./Retrieval-based-{complete_phrase}")os.system("load_ext tensorboard")clear_output()os.system("tensorboard --logdir ./Applio-$juxxn-Fork/logs")os.system("mkdir -p ./Applio-$juxxn-Fork/audios")print("Try")arguments = "--colab --pycmd python3"os.system("python3 $namepython $arguments")if LoadBackupDrive:
app.py+20-23