seawolf2357 commited on
Commit
95ae26b
·
verified ·
1 Parent(s): f819354

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -6
app.py CHANGED
@@ -220,15 +220,23 @@ def main():
220
  denoiser.eval()
221
 
222
 
 
 
 
 
 
 
 
 
 
 
 
 
223
  demo_play = gr.Interface(fn = tts,
224
  inputs = [gr.Textbox(max_lines=6, label="Input Text", value="I am Taylor Swif. Be the change that you wish to see in the world", info="Up to 200 characters"),
225
  gr.Audio(type='filepath', value="./example/TaylorSwift.wav"),
226
- gr.Slider(0,1,0.333),
227
- gr.Slider(0,1,0.333),
228
- gr.Slider(0,1,1.0),
229
- gr.Slider(0.5,2,1.0),
230
- gr.Slider(0,1,0),
231
- gr.Slider(0,9999,1111)],
232
  outputs = 'audio',
233
  title = 'ZeroShot Voice',
234
  description = '''<div>
 
220
  denoiser.eval()
221
 
222
 
223
+ config_components = [
224
+ gr.Slider(0, 1, 0.333, label="TTV Temperature"),
225
+ gr.Slider(0, 1, 0.333, label="VC Temperature"),
226
+ gr.Slider(0, 1, 1.0, label="Duration Temperature"),
227
+ gr.Slider(0.5, 2, 1.0, label="Duration Length"),
228
+ gr.Slider(0, 1, 0, label="Denoise Ratio"),
229
+ gr.Slider(0, 9999, 1111, label="Random Seed")
230
+ ]
231
+
232
+ config_section = gr.Collapsible("Advanced Configuration", config_components)
233
+
234
+
235
  demo_play = gr.Interface(fn = tts,
236
  inputs = [gr.Textbox(max_lines=6, label="Input Text", value="I am Taylor Swif. Be the change that you wish to see in the world", info="Up to 200 characters"),
237
  gr.Audio(type='filepath', value="./example/TaylorSwift.wav"),
238
+ config_section
239
+ ],
 
 
 
 
240
  outputs = 'audio',
241
  title = 'ZeroShot Voice',
242
  description = '''<div>