r3gm commited on
Commit
281f8c1
·
verified ·
1 Parent(s): 260d41f

Update inference/svs/gradio/infer.py

Browse files
Files changed (1) hide show
  1. inference/svs/gradio/infer.py +5 -5
inference/svs/gradio/infer.py CHANGED
@@ -3,7 +3,7 @@ import re
3
 
4
  import gradio as gr
5
  import yaml
6
- from gradio.inputs import Textbox
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, default=example_inputs[0][0], label="input text"),
70
- Textbox(lines=2, placeholder=None, default=example_inputs[0][1], label="input note"),
71
- Textbox(lines=2, placeholder=None, default=example_inputs[0][2], label="input duration")]
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
- enable_queue=True)
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