Spaces:
Runtime error
Runtime error
SayaSS
commited on
Commit
·
c2dde5f
1
Parent(s):
d1fada4
update rudolf model
Browse files- app.py +12 -1
- models/rudolf/rudolf.pth +1 -1
app.py
CHANGED
|
@@ -8,13 +8,24 @@ from inference.infer_tool import Svc
|
|
| 8 |
import logging
|
| 9 |
import webbrowser
|
| 10 |
import argparse
|
| 11 |
-
|
| 12 |
logging.getLogger('numba').setLevel(logging.WARNING)
|
| 13 |
logging.getLogger('markdown_it').setLevel(logging.WARNING)
|
| 14 |
logging.getLogger('urllib3').setLevel(logging.WARNING)
|
| 15 |
logging.getLogger('matplotlib').setLevel(logging.WARNING)
|
| 16 |
|
| 17 |
limitation = os.getenv("SYSTEM") == "spaces" # limit audio length in huggingface spaces
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
def create_vc_fn(model, sid):
|
| 19 |
def vc_fn(input_audio, vc_transform, auto_f0):
|
| 20 |
if input_audio is None:
|
|
|
|
| 8 |
import logging
|
| 9 |
import webbrowser
|
| 10 |
import argparse
|
| 11 |
+
import gradio.processing_utils as gr_processing_utils
|
| 12 |
logging.getLogger('numba').setLevel(logging.WARNING)
|
| 13 |
logging.getLogger('markdown_it').setLevel(logging.WARNING)
|
| 14 |
logging.getLogger('urllib3').setLevel(logging.WARNING)
|
| 15 |
logging.getLogger('matplotlib').setLevel(logging.WARNING)
|
| 16 |
|
| 17 |
limitation = os.getenv("SYSTEM") == "spaces" # limit audio length in huggingface spaces
|
| 18 |
+
|
| 19 |
+
audio_postprocess_ori = gr.Audio.postprocess
|
| 20 |
+
|
| 21 |
+
def audio_postprocess(self, y):
|
| 22 |
+
data = audio_postprocess_ori(self, y)
|
| 23 |
+
if data is None:
|
| 24 |
+
return None
|
| 25 |
+
return gr_processing_utils.encode_url_or_file_to_base64(data["name"])
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
gr.Audio.postprocess = audio_postprocess
|
| 29 |
def create_vc_fn(model, sid):
|
| 30 |
def vc_fn(input_audio, vc_transform, auto_f0):
|
| 31 |
if input_audio is None:
|
models/rudolf/rudolf.pth
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 180883747
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0dc3027ae74f1747208c4c4c686dd65c7064899cce37d8d19e2e1eb7cb53df09
|
| 3 |
size 180883747
|