Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,11 +1,14 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import os, shutil
|
|
|
|
| 3 |
import subprocess, glob
|
| 4 |
from datetime import datetime
|
| 5 |
os.environ["rmvpe_root"] = "assets/rmvpe"
|
| 6 |
os.environ['index_root']="logs"
|
| 7 |
os.environ['weight_root']="assets/weights"
|
| 8 |
|
|
|
|
|
|
|
| 9 |
def convert(audio_picker,model_picker,index_picker,index_rate,pitch):
|
| 10 |
gr.Warning("Your audio is being converted. Please wait.")
|
| 11 |
now = datetime.now().strftime("%d%m%Y%H%M%S")
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import os, shutil
|
| 3 |
+
import spaces
|
| 4 |
import subprocess, glob
|
| 5 |
from datetime import datetime
|
| 6 |
os.environ["rmvpe_root"] = "assets/rmvpe"
|
| 7 |
os.environ['index_root']="logs"
|
| 8 |
os.environ['weight_root']="assets/weights"
|
| 9 |
|
| 10 |
+
|
| 11 |
+
@spaces.GPU
|
| 12 |
def convert(audio_picker,model_picker,index_picker,index_rate,pitch):
|
| 13 |
gr.Warning("Your audio is being converted. Please wait.")
|
| 14 |
now = datetime.now().strftime("%d%m%Y%H%M%S")
|