ollieollie commited on
Commit
6273840
·
verified ·
1 Parent(s): 0b3e025

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -49,7 +49,7 @@ def set_seed(seed: int):
49
  np.random.seed(seed)
50
 
51
  @spaces.GPU # Your GPU-accelerated function
52
- def generate_tts_audio(text_input, audio_prompt_path_input, exaggeration_input, pace_input, temperature_input, seed_num_input, cfgw_input):
53
  current_model = get_or_load_model() # Access the global model
54
 
55
  if current_model is None:
@@ -65,7 +65,6 @@ def generate_tts_audio(text_input, audio_prompt_path_input, exaggeration_input,
65
  text_input,
66
  audio_prompt_path=audio_prompt_path_input,
67
  exaggeration=exaggeration_input,
68
- pace=pace_input,
69
  temperature=temperature_input,
70
  cfg_weight=cfgw_input,
71
  )
@@ -88,7 +87,7 @@ with gr.Blocks() as demo:
88
  with gr.Accordion("More options", open=False):
89
  seed_num = gr.Number(value=0, label="Random seed (0 for random)")
90
  temp = gr.Slider(0.05, 5, step=.05, label="temperature", value=.8)
91
- pace = gr.Slider(0.8, 1.2, step=.01, label="pace", value=1)
92
 
93
  run_btn = gr.Button("Generate", variant="primary")
94
 
@@ -102,7 +101,6 @@ with gr.Blocks() as demo:
102
  text,
103
  ref_wav,
104
  exaggeration,
105
- pace,
106
  temp,
107
  seed_num,
108
  cfg_weight,
 
49
  np.random.seed(seed)
50
 
51
  @spaces.GPU # Your GPU-accelerated function
52
+ def generate_tts_audio(text_input, audio_prompt_path_input, exaggeration_input, temperature_input, seed_num_input, cfgw_input):
53
  current_model = get_or_load_model() # Access the global model
54
 
55
  if current_model is None:
 
65
  text_input,
66
  audio_prompt_path=audio_prompt_path_input,
67
  exaggeration=exaggeration_input,
 
68
  temperature=temperature_input,
69
  cfg_weight=cfgw_input,
70
  )
 
87
  with gr.Accordion("More options", open=False):
88
  seed_num = gr.Number(value=0, label="Random seed (0 for random)")
89
  temp = gr.Slider(0.05, 5, step=.05, label="temperature", value=.8)
90
+
91
 
92
  run_btn = gr.Button("Generate", variant="primary")
93
 
 
101
  text,
102
  ref_wav,
103
  exaggeration,
 
104
  temp,
105
  seed_num,
106
  cfg_weight,