seawolf2357 commited on
Commit
e5b1f08
1 Parent(s): 6682dbb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -18
app.py CHANGED
@@ -220,23 +220,23 @@ def main():
220
  denoiser.eval()
221
 
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],
@@ -245,5 +245,7 @@ demo_play = gr.Interface(fn=tts,
245
  css=css
246
  )
247
 
 
 
248
  if __name__ == '__main__':
249
- demo_play.launch(auth=("aiq", "camp"))
 
220
  denoiser.eval()
221
 
222
 
223
+
224
+ demo_play = gr.Interface(
225
+ 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', label="Input Audio", value="./example/TaylorSwift.wav"),
229
+ gr.Slider(0, 1, 0.333, label="TTV Temperature"),
230
+ gr.Slider(0, 1, 0.333, label="VC Temperature"),
231
+ gr.Slider(0, 1, 1.0, label="Duration Temperature"),
232
+ gr.Slider(0.5, 2, 1.0, label="Duration Length"),
233
+ gr.Slider(0, 1, 0, label="Denoise Ratio"),
234
+ gr.Slider(0, 9999, 1111, label="Random Seed")],
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],
 
245
  css=css
246
  )
247
 
248
+ demo_play.launch()
249
+
250
  if __name__ == '__main__':
251
+ main()