Spaces:
Build error
Build error
Update inference/svs/gradio/infer.py
Browse files
inference/svs/gradio/infer.py
CHANGED
|
@@ -3,7 +3,7 @@ import re
|
|
| 3 |
|
| 4 |
import gradio as gr
|
| 5 |
import yaml
|
| 6 |
-
from gradio
|
| 7 |
|
| 8 |
from inference.svs.base_svs_infer import BaseSVSInfer
|
| 9 |
from utils.hparams import set_hparams
|
|
@@ -66,9 +66,9 @@ class GradioInfer:
|
|
| 66 |
|
| 67 |
iface = gr.Interface(fn=self.greet,
|
| 68 |
inputs=[
|
| 69 |
-
Textbox(lines=2, placeholder=None,
|
| 70 |
-
Textbox(lines=2, placeholder=None,
|
| 71 |
-
Textbox(lines=2, placeholder=None,
|
| 72 |
,
|
| 73 |
outputs="audio",
|
| 74 |
allow_flagging="never",
|
|
@@ -76,7 +76,7 @@ class GradioInfer:
|
|
| 76 |
description=self.description,
|
| 77 |
article=self.article,
|
| 78 |
examples=example_inputs,
|
| 79 |
-
|
| 80 |
iface.launch()
|
| 81 |
|
| 82 |
|
|
|
|
| 3 |
|
| 4 |
import gradio as gr
|
| 5 |
import yaml
|
| 6 |
+
from gradio import Textbox
|
| 7 |
|
| 8 |
from inference.svs.base_svs_infer import BaseSVSInfer
|
| 9 |
from utils.hparams import set_hparams
|
|
|
|
| 66 |
|
| 67 |
iface = gr.Interface(fn=self.greet,
|
| 68 |
inputs=[
|
| 69 |
+
Textbox(lines=2, placeholder=None, value=example_inputs[0][0], label="input text"),
|
| 70 |
+
Textbox(lines=2, placeholder=None, value=example_inputs[0][1], label="input note"),
|
| 71 |
+
Textbox(lines=2, placeholder=None, value=example_inputs[0][2], label="input duration")]
|
| 72 |
,
|
| 73 |
outputs="audio",
|
| 74 |
allow_flagging="never",
|
|
|
|
| 76 |
description=self.description,
|
| 77 |
article=self.article,
|
| 78 |
examples=example_inputs,
|
| 79 |
+
)
|
| 80 |
iface.launch()
|
| 81 |
|
| 82 |
|