Spaces:
Sleeping
Sleeping
Vladimir Alabov
commited on
Commit
·
6efd25d
1
Parent(s):
ad9b68c
Fix audio load #10
Browse files
app.py
CHANGED
@@ -17,15 +17,6 @@ logging.getLogger('matplotlib').setLevel(logging.WARNING)
|
|
17 |
|
18 |
limitation = os.getenv("SYSTEM") == "spaces" # limit audio length in huggingface spaces
|
19 |
|
20 |
-
audio_postprocess_ori = gr.Audio.postprocess
|
21 |
-
|
22 |
-
def audio_postprocess(self, y):
|
23 |
-
data = audio_postprocess_ori(self, y)
|
24 |
-
if data is None:
|
25 |
-
return None
|
26 |
-
return gr_processing_utils.encode_url_or_file_to_base64(data["name"])
|
27 |
-
|
28 |
-
gr.Audio.postprocess = audio_postprocess
|
29 |
def unused_vc_fn(input_audio, vc_transform, voice):
|
30 |
if input_audio is None:
|
31 |
return "You need to upload an audio", None
|
|
|
17 |
|
18 |
limitation = os.getenv("SYSTEM") == "spaces" # limit audio length in huggingface spaces
|
19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
def unused_vc_fn(input_audio, vc_transform, voice):
|
21 |
if input_audio is None:
|
22 |
return "You need to upload an audio", None
|