Staticaliza commited on
Commit
93fc110
·
verified ·
1 Parent(s): 662b7d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -65,6 +65,7 @@ footer {
65
  }
66
  '''
67
 
 
68
  def trim_silence(audio, threshold=0.001):
69
  abs_audio = np.abs(audio)
70
  indices = np.where(abs_audio > threshold)[0]
@@ -74,7 +75,6 @@ def trim_silence(audio, threshold=0.001):
74
  end = indices[-1] + 1
75
  return audio[start:end]
76
 
77
- # Functions
78
  def generate(text=DEFAULT_INPUT, voice=DEFAULT_VOICE, speed=1):
79
  text = text.strip()[:CHAR_LIMIT] + "."
80
  pipeline = PIPELINES[voice[0]]
 
65
  }
66
  '''
67
 
68
+ # Functions
69
  def trim_silence(audio, threshold=0.001):
70
  abs_audio = np.abs(audio)
71
  indices = np.where(abs_audio > threshold)[0]
 
75
  end = indices[-1] + 1
76
  return audio[start:end]
77
 
 
78
  def generate(text=DEFAULT_INPUT, voice=DEFAULT_VOICE, speed=1):
79
  text = text.strip()[:CHAR_LIMIT] + "."
80
  pipeline = PIPELINES[voice[0]]