Spaces:
Build error
Build error
Commit
·
facaf18
1
Parent(s):
a85ad15
update
Browse files
inference/gradio/infer.py
CHANGED
|
@@ -11,6 +11,7 @@ from utils.hparams import hparams as hp
|
|
| 11 |
import numpy as np
|
| 12 |
|
| 13 |
from data_gen.tts.data_gen_utils import is_sil_phoneme, PUNCS
|
|
|
|
| 14 |
|
| 15 |
class GradioInfer:
|
| 16 |
def __init__(self, exp_name, config, inference_cls, title, description, article, example_inputs):
|
|
@@ -55,7 +56,7 @@ class GradioInfer:
|
|
| 55 |
for i in range(len(example_inputs)):
|
| 56 |
text, ref_audio = example_inputs[i].split('|')
|
| 57 |
print('text: ', text, 'ref_audio:', ref_audio)
|
| 58 |
-
example_inputs[i] = [text, ref_audio]
|
| 59 |
|
| 60 |
iface = gr.Interface(fn=self.greet,
|
| 61 |
inputs=[
|
|
|
|
| 11 |
import numpy as np
|
| 12 |
|
| 13 |
from data_gen.tts.data_gen_utils import is_sil_phoneme, PUNCS
|
| 14 |
+
import os
|
| 15 |
|
| 16 |
class GradioInfer:
|
| 17 |
def __init__(self, exp_name, config, inference_cls, title, description, article, example_inputs):
|
|
|
|
| 56 |
for i in range(len(example_inputs)):
|
| 57 |
text, ref_audio = example_inputs[i].split('|')
|
| 58 |
print('text: ', text, 'ref_audio:', ref_audio)
|
| 59 |
+
example_inputs[i] = [text, os.getcwd() + '/' + ref_audio]
|
| 60 |
|
| 61 |
iface = gr.Interface(fn=self.greet,
|
| 62 |
inputs=[
|