Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -131,19 +131,19 @@ def runVits(name, config, txt):
|
|
131 |
# audio = gr.Audio(label="output")
|
132 |
# submit.click(runVits, [character, model, text], audio)
|
133 |
# app.launch(share=True)
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
|
|
131 |
# audio = gr.Audio(label="output")
|
132 |
# submit.click(runVits, [character, model, text], audio)
|
133 |
# app.launch(share=True)
|
134 |
+
if __name__ == '__main__':
|
135 |
+
demo = gr.Interface(
|
136 |
+
|
137 |
+
fn=runVits,
|
138 |
+
inputs=[
|
139 |
+
gr.Radio(['九条都', '新海天', '结城希亚', '蕾娜', '索菲'], label='character',
|
140 |
+
info="select character you want"),
|
141 |
+
gr.Radio(['mul'], label='configfile', info="select models(recent multiple model only)"),
|
142 |
+
gr.Textbox(label="input content", lines=4, visible=True),
|
143 |
+
|
144 |
+
], outputs=[
|
145 |
+
gr.Audio(label='output')
|
146 |
+
]
|
147 |
+
|
148 |
+
)
|
149 |
+
demo.launch(share=True)
|