Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -222,33 +222,29 @@ def main():
|
|
222 |
|
223 |
|
224 |
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
auth=gr.Auth(["aiq"], ["camp"]) # 인증 정보 적용
|
252 |
-
)
|
253 |
-
|
254 |
-
demo_play.launch()
|
|
|
222 |
|
223 |
|
224 |
|
225 |
+
demo_play = gr.Interface(fn=tts,
|
226 |
+
inputs=[
|
227 |
+
gr.Textbox(max_lines=6, label="Input Text", value="I am Taylor Swift. Be the change that you wish to see in the world", info="Up to 400 characters"),
|
228 |
+
gr.Audio(type='filepath', value="./example/TaylorSwift.wav"),
|
229 |
+
gr.Slider(0,1,0.333),
|
230 |
+
gr.Slider(0,1,0.333),
|
231 |
+
gr.Slider(0,1,1.0),
|
232 |
+
gr.Slider(0.5,2,1.0),
|
233 |
+
gr.Slider(0,1,0),
|
234 |
+
gr.Slider(0,9999,1111)],
|
235 |
+
outputs='audio',
|
236 |
+
title='ZeroShot Voice',
|
237 |
+
description='''<div>
|
238 |
+
<p style="text-align: left"> ZeroShot Voice is a 'Zero shot' speech synthesis model.</p>
|
239 |
+
</div>''',
|
240 |
+
examples=[["I am Dasvader of Starwars. I am your Father. Be the change that you wish to see in the world", "./example/dasvader.wav", 0.333,0.333, 1.0, 1.0, 0, 1111],
|
241 |
+
["I am Taylor Swift. Be the change that you wish to see in the world", "./example/TaylorSwift.wav", 0.333,0.667, 1.0, 1.0, 0, 1790],
|
242 |
+
["I am Marlon Brando of God Father. Be the change that you wish to see in the world", "./example/MarlonBrando.wav", 0.333,0.333, 1.0, 1.0, 0, 1111],
|
243 |
+
["I am Obama. Be the change that you wish to see in the world", "./example/obama.wav", 0.333,0.333, 1.0, 1.0, 0, 1111],
|
244 |
+
["I am Trump. Be the change that you wish to see in the world", "./example/trump.wav", 0.333,0.333, 1.0, 1.0, 0, 1111]],
|
245 |
+
css=css,
|
246 |
+
auth=("aiq", "camp")
|
247 |
+
)
|
248 |
+
|
249 |
+
if __name__ == '__main__':
|
250 |
+
demo_play.launch()
|
|
|
|
|
|
|
|