zachzzc commited on
Commit
c0add26
·
1 Parent(s): d7acdf0

Reduce GPU duration

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -270,7 +270,7 @@ def prepare_chatml_sample(
270
  return ChatMLSample(messages=messages)
271
 
272
 
273
- @spaces.GPU(duration=500)
274
  def text_to_speech(
275
  text,
276
  voice_preset,
@@ -282,7 +282,7 @@ def text_to_speech(
282
  top_k=50,
283
  system_prompt=DEFAULT_SYSTEM_PROMPT,
284
  stop_strings=None,
285
- ras_win_len=20,
286
  ras_win_max_num_repeat=2,
287
  ):
288
  """Convert text to speech using HiggsAudioServeEngine."""
@@ -457,7 +457,7 @@ def create_ui():
457
  ras_win_len = gr.Slider(
458
  minimum=0,
459
  maximum=10,
460
- value=0,
461
  step=1,
462
  label="RAS Window Length",
463
  info="Window length for repetition avoidance sampling",
 
270
  return ChatMLSample(messages=messages)
271
 
272
 
273
+ @spaces.GPU(duration=120)
274
  def text_to_speech(
275
  text,
276
  voice_preset,
 
282
  top_k=50,
283
  system_prompt=DEFAULT_SYSTEM_PROMPT,
284
  stop_strings=None,
285
+ ras_win_len=7,
286
  ras_win_max_num_repeat=2,
287
  ):
288
  """Convert text to speech using HiggsAudioServeEngine."""
 
457
  ras_win_len = gr.Slider(
458
  minimum=0,
459
  maximum=10,
460
+ value=7,
461
  step=1,
462
  label="RAS Window Length",
463
  info="Window length for repetition avoidance sampling",