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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +26 -30
app.py CHANGED
@@ -222,33 +222,29 @@ def main():
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()
 
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()