Spaces:
Runtime error
Runtime error
kevinwang676
commited on
Commit
•
4307e40
1
Parent(s):
778472c
Update app.py
Browse files
app.py
CHANGED
@@ -94,6 +94,7 @@ from infer_rvc_python import BaseLoader
|
|
94 |
#converter = BaseLoader(only_cpu=True, hubert_path="hubert_base.pt", rmvpe_path="rmvpe.pt")
|
95 |
#converter = BaseLoader(only_cpu=True, hubert_path=None, rmvpe_path=None)
|
96 |
|
|
|
97 |
def convert_now(audio_files, random_tag, converter):
|
98 |
return converter(
|
99 |
audio_files,
|
@@ -102,7 +103,7 @@ def convert_now(audio_files, random_tag, converter):
|
|
102 |
parallel_workers=8
|
103 |
)
|
104 |
|
105 |
-
converter_test = BaseLoader(only_cpu=
|
106 |
|
107 |
converter_test.apply_conf(
|
108 |
tag="yoimiya",
|
|
|
94 |
#converter = BaseLoader(only_cpu=True, hubert_path="hubert_base.pt", rmvpe_path="rmvpe.pt")
|
95 |
#converter = BaseLoader(only_cpu=True, hubert_path=None, rmvpe_path=None)
|
96 |
|
97 |
+
@spaces.GPU()
|
98 |
def convert_now(audio_files, random_tag, converter):
|
99 |
return converter(
|
100 |
audio_files,
|
|
|
103 |
parallel_workers=8
|
104 |
)
|
105 |
|
106 |
+
converter_test = BaseLoader(only_cpu=False, hubert_path=None, rmvpe_path=None)
|
107 |
|
108 |
converter_test.apply_conf(
|
109 |
tag="yoimiya",
|