Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ start_time = time.time()
|
|
36 |
maville = "R"
|
37 |
acat = "VC"
|
38 |
juxxn = maville + acat
|
39 |
-
os.system('git clone https://github.com/IAHispano/Applio-Utilities ./Applio
|
40 |
|
41 |
end_time = time.time()
|
42 |
elapsed_time = end_time - start_time
|
@@ -53,8 +53,8 @@ start_time = time.time()
|
|
53 |
maville = "R"
|
54 |
acat = "VC"
|
55 |
juxxn = maville + acat
|
56 |
-
complete_phrase = './Applio-
|
57 |
-
os.chdir(f'./Applio-
|
58 |
from utils.dependency import *
|
59 |
from utils.clonerepo_experimental import *
|
60 |
os.chdir("..")
|
@@ -159,8 +159,8 @@ LoadBackupDrive = False #@param{type:"boolean"}
|
|
159 |
#@markdown Make regular backups of your model's training.
|
160 |
AutoBackups = True #@param{type:"boolean"}
|
161 |
|
162 |
-
complete_phrase = './Applio-
|
163 |
-
os.chdir(f'./Applio-
|
164 |
from utils import backups
|
165 |
|
166 |
def generate_random_string(length=6):
|
@@ -174,29 +174,29 @@ if namepython == "infer-web.py":
|
|
174 |
os.rename(os.path.join(complete_phrase, "infer-web.py"), os.path.join(complete_phrase, nuevo_nombre))
|
175 |
namepython = nuevo_nombre
|
176 |
|
177 |
-
LOGS_FOLDER = './Applio-
|
178 |
if not os.path.exists(LOGS_FOLDER):
|
179 |
os.makedirs(LOGS_FOLDER)
|
180 |
clear_output()
|
181 |
|
182 |
-
WEIGHTS_FOLDER = './Applio-
|
183 |
if not os.path.exists(WEIGHTS_FOLDER):
|
184 |
os.makedirs(WEIGHTS_FOLDER)
|
185 |
clear_output()
|
186 |
|
187 |
-
others_FOLDER = './Applio-
|
188 |
if not os.path.exists(others_FOLDER):
|
189 |
os.makedirs(others_FOLDER)
|
190 |
clear_output()
|
191 |
|
192 |
-
audio_outputs_FOLDER = './Applio-
|
193 |
if not os.path.exists(audio_outputs_FOLDER):
|
194 |
os.makedirs(audio_outputs_FOLDER)
|
195 |
clear_output()
|
196 |
|
197 |
#@markdown Choose the language in which you want the interface to be available.
|
198 |
-
i18n_path = './Applio-
|
199 |
-
i18n_new_path = './Applio-
|
200 |
try:
|
201 |
if os.path.exists(i18n_path) and os.path.exists(i18n_new_path):
|
202 |
shutil.move(i18n_new_path, i18n_path)
|
@@ -227,8 +227,8 @@ def tempus_killed_server():
|
|
227 |
os.system("cd ./Retrieval-based-{complete_phrase}")
|
228 |
os.system("load_ext tensorboard")
|
229 |
clear_output()
|
230 |
-
os.system("tensorboard --logdir ./Applio
|
231 |
-
os.system("mkdir -p ./Applio
|
232 |
print("Try")
|
233 |
arguments = "--colab --pycmd python3"
|
234 |
os.system("python3 $namepython $arguments")
|
|
|
36 |
maville = "R"
|
37 |
acat = "VC"
|
38 |
juxxn = maville + acat
|
39 |
+
os.system('git clone https://github.com/IAHispano/Applio-Utilities ./Applio-RVC-Fork/utils')
|
40 |
|
41 |
end_time = time.time()
|
42 |
elapsed_time = end_time - start_time
|
|
|
53 |
maville = "R"
|
54 |
acat = "VC"
|
55 |
juxxn = maville + acat
|
56 |
+
complete_phrase = './Applio-RVC-Fork/'
|
57 |
+
os.chdir(f'./Applio-RVC-Fork/')
|
58 |
from utils.dependency import *
|
59 |
from utils.clonerepo_experimental import *
|
60 |
os.chdir("..")
|
|
|
159 |
#@markdown Make regular backups of your model's training.
|
160 |
AutoBackups = True #@param{type:"boolean"}
|
161 |
|
162 |
+
complete_phrase = './Applio-RVC-Fork/'
|
163 |
+
os.chdir(f'./Applio-RVC-Fork/')
|
164 |
from utils import backups
|
165 |
|
166 |
def generate_random_string(length=6):
|
|
|
174 |
os.rename(os.path.join(complete_phrase, "infer-web.py"), os.path.join(complete_phrase, nuevo_nombre))
|
175 |
namepython = nuevo_nombre
|
176 |
|
177 |
+
LOGS_FOLDER = './Applio-RVC-Fork/logs'
|
178 |
if not os.path.exists(LOGS_FOLDER):
|
179 |
os.makedirs(LOGS_FOLDER)
|
180 |
clear_output()
|
181 |
|
182 |
+
WEIGHTS_FOLDER = './Applio-RVC-Fork' + '/logs' + '/weights'
|
183 |
if not os.path.exists(WEIGHTS_FOLDER):
|
184 |
os.makedirs(WEIGHTS_FOLDER)
|
185 |
clear_output()
|
186 |
|
187 |
+
others_FOLDER = './Applio-RVC-Fork' + '/audio-others'
|
188 |
if not os.path.exists(others_FOLDER):
|
189 |
os.makedirs(others_FOLDER)
|
190 |
clear_output()
|
191 |
|
192 |
+
audio_outputs_FOLDER = './Applio-RVC-Fork' + '/audio-outputs'
|
193 |
if not os.path.exists(audio_outputs_FOLDER):
|
194 |
os.makedirs(audio_outputs_FOLDER)
|
195 |
clear_output()
|
196 |
|
197 |
#@markdown Choose the language in which you want the interface to be available.
|
198 |
+
i18n_path = './Applio-RVC-Fork/' + 'i18n.py'
|
199 |
+
i18n_new_path = './Applio-RVC-Fork/' + 'utils/i18n.py'
|
200 |
try:
|
201 |
if os.path.exists(i18n_path) and os.path.exists(i18n_new_path):
|
202 |
shutil.move(i18n_new_path, i18n_path)
|
|
|
227 |
os.system("cd ./Retrieval-based-{complete_phrase}")
|
228 |
os.system("load_ext tensorboard")
|
229 |
clear_output()
|
230 |
+
os.system("tensorboard --logdir ./Applio-RVC-Fork/logs")
|
231 |
+
os.system("mkdir -p ./Applio-RVC-Fork/audios")
|
232 |
print("Try")
|
233 |
arguments = "--colab --pycmd python3"
|
234 |
os.system("python3 $namepython $arguments")
|