Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ import gradio as gr
|
|
10 |
from models import SynthesizerTrn
|
11 |
from text import text_to_sequence, _clean_text
|
12 |
from torch import no_grad, LongTensor
|
13 |
-
import
|
14 |
import logging
|
15 |
logging.getLogger('numba').setLevel(logging.WARNING)
|
16 |
limitation = os.getenv("SYSTEM") == "spaces" # limit text and audio length in huggingface spaces
|
@@ -23,7 +23,7 @@ def audio_postprocess(self, y):
|
|
23 |
data = audio_postprocess_ori(self, y)
|
24 |
if data is None:
|
25 |
return None
|
26 |
-
return
|
27 |
|
28 |
|
29 |
gr.Audio.postprocess = audio_postprocess
|
|
|
10 |
from models import SynthesizerTrn
|
11 |
from text import text_to_sequence, _clean_text
|
12 |
from torch import no_grad, LongTensor
|
13 |
+
from gradio_client import utils as client_utils
|
14 |
import logging
|
15 |
logging.getLogger('numba').setLevel(logging.WARNING)
|
16 |
limitation = os.getenv("SYSTEM") == "spaces" # limit text and audio length in huggingface spaces
|
|
|
23 |
data = audio_postprocess_ori(self, y)
|
24 |
if data is None:
|
25 |
return None
|
26 |
+
return client_utils.encode_url_or_file_to_base64(data["name"])
|
27 |
|
28 |
|
29 |
gr.Audio.postprocess = audio_postprocess
|