litagin commited on
Commit
f699eaf
Β·
1 Parent(s): ef73374

Try to fix print 100 limit error

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -231,7 +231,7 @@ def tts_fn(
231
  if is_hf_spaces and len(text) > limit:
232
  logger.error(f"ζ–‡ε­—ζ•°γŒ{limit}ζ–‡ε­—γ‚’θΆ…γˆγ¦γ„γΎγ™")
233
  # raise Exception(f"ζ–‡ε­—ζ•°γŒ{limit}ζ–‡ε­—γ‚’θΆ…γˆγ¦γ„γΎγ™")
234
- return f"ζ–‡ε­—ζ•°γŒ{limit}ζ–‡ε­—γ‚’θΆ…γˆγ¦γ„γΎγ™", (None, None)
235
 
236
  assert model_holder.current_model is not None
237
 
 
231
  if is_hf_spaces and len(text) > limit:
232
  logger.error(f"ζ–‡ε­—ζ•°γŒ{limit}ζ–‡ε­—γ‚’θΆ…γˆγ¦γ„γΎγ™")
233
  # raise Exception(f"ζ–‡ε­—ζ•°γŒ{limit}ζ–‡ε­—γ‚’θΆ…γˆγ¦γ„γΎγ™")
234
+ return f"ζ–‡ε­—ζ•°γŒ{limit}ζ–‡ε­—γ‚’θΆ…γˆγ¦γ„γΎγ™", (44100, "")
235
 
236
  assert model_holder.current_model is not None
237