seawolf2357 commited on
Commit
13d1f81
·
verified ·
1 Parent(s): 21b5903

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +30 -26
app.py CHANGED
@@ -220,31 +220,35 @@ def main():
220
  denoiser.eval()
221
 
222
 
223
- demo_play = gr.Interface(fn=tts,
224
- inputs=[
225
- 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"),
226
- gr.Audio(type='filepath', value="./example/TaylorSwift.wav"),
227
- gr.Slider(0,1,0.333),
228
- gr.Slider(0,1,0.333),
229
- gr.Slider(0,1,1.0),
230
- gr.Slider(0.5,2,1.0),
231
- gr.Slider(0,1,0),
232
- gr.Slider(0,9999,1111)],
233
- outputs='audio',
234
- title='ZeroShot Voice',
235
- description='''<div>
236
- <p style="text-align: left"> ZeroShot Voice is a 'Zero shot' speech synthesis model.</p>
237
- </div>''',
238
- 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],
239
- ["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],
240
- ["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],
241
- ["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],
242
- ["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]],
243
- css=css
244
- )
245
- demo_play.launch(auth=("aiq", "camp"))
246
-
247
 
248
- if __name__ == '__main__':
249
- main()
250
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
220
  denoiser.eval()
221
 
222
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
223
 
 
 
224
 
225
+ def main():
226
+ demo_play = gr.Interface(
227
+ fn=tts,
228
+ inputs=[
229
+ 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"),
230
+ gr.Audio(type='filepath', value="./example/TaylorSwift.wav"),
231
+ gr.Slider(0, 1, 0.333),
232
+ gr.Slider(0, 1, 0.333),
233
+ gr.Slider(0, 1, 1.0),
234
+ gr.Slider(0.5, 2, 1.0),
235
+ gr.Slider(0, 1, 0),
236
+ gr.Slider(0, 9999, 1111)
237
+ ],
238
+ outputs='audio',
239
+ title='ZeroShot Voice',
240
+ description='''<div>
241
+ <p style="text-align: left"> ZeroShot Voice is a 'Zero shot' speech synthesis model.</p>
242
+ </div>''',
243
+ examples=[
244
+ ["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],
245
+ ["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],
246
+ ["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],
247
+ ["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],
248
+ ["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]
249
+ ],
250
+ css=css,
251
+ auth=gr.Auth(["aiq"], ["camp"]) # 인증 정보 적용
252
+ )
253
+
254
+ demo_play.launch()