Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,6 @@ import subprocess, torch, os, traceback, sys, warnings, shutil, numpy as np
|
|
| 2 |
from mega import Mega
|
| 3 |
os.environ["no_proxy"] = "localhost, 127.0.0.1, ::1"
|
| 4 |
import threading
|
| 5 |
-
from pathlib import Path
|
| 6 |
from time import sleep
|
| 7 |
from subprocess import Popen
|
| 8 |
import faiss
|
|
@@ -59,7 +58,7 @@ def download_models():
|
|
| 59 |
|
| 60 |
# Download rmvpe model if not present
|
| 61 |
if not os.path.isfile('./rmvpe.pt'):
|
| 62 |
-
response = requests.get('https://drive.google.com/
|
| 63 |
|
| 64 |
if response.status_code == 200:
|
| 65 |
with open('./rmvpe.pt', 'wb') as f:
|
|
@@ -1943,7 +1942,7 @@ with gr.Blocks(theme=gr.themes.Base(), title='Mangio-RVC-Web 💻') as app:
|
|
| 1943 |
variant='primary',
|
| 1944 |
visible=False,
|
| 1945 |
)
|
| 1946 |
-
but3 = gr.Button("3. Train Model", variant="primary", visible=
|
| 1947 |
|
| 1948 |
but3.click(fn=stoptraining, inputs=[gr.Number(value=0, visible=False)], outputs=[but3, butstop])
|
| 1949 |
butstop.click(fn=stoptraining, inputs=[gr.Number(value=1, visible=False)], outputs=[butstop, but3])
|
|
|
|
| 2 |
from mega import Mega
|
| 3 |
os.environ["no_proxy"] = "localhost, 127.0.0.1, ::1"
|
| 4 |
import threading
|
|
|
|
| 5 |
from time import sleep
|
| 6 |
from subprocess import Popen
|
| 7 |
import faiss
|
|
|
|
| 58 |
|
| 59 |
# Download rmvpe model if not present
|
| 60 |
if not os.path.isfile('./rmvpe.pt'):
|
| 61 |
+
response = requests.get('https://drive.usercontent.google.com/download?id=1Hkn4kNuVFRCNQwyxQFRtmzmMBGpQxptI&export=download&authuser=0&confirm=t&uuid=0b3a40de-465b-4c65-8c41-135b0b45c3f7&at=APZUnTV3lA3LnyTbeuduura6Dmi2:1693724254058')
|
| 62 |
|
| 63 |
if response.status_code == 200:
|
| 64 |
with open('./rmvpe.pt', 'wb') as f:
|
|
|
|
| 1942 |
variant='primary',
|
| 1943 |
visible=False,
|
| 1944 |
)
|
| 1945 |
+
but3 = gr.Button("3. Train Model", variant="primary", visible=True)
|
| 1946 |
|
| 1947 |
but3.click(fn=stoptraining, inputs=[gr.Number(value=0, visible=False)], outputs=[but3, butstop])
|
| 1948 |
butstop.click(fn=stoptraining, inputs=[gr.Number(value=1, visible=False)], outputs=[butstop, but3])
|