roychao19477 commited on
Commit
7bf14b8
·
1 Parent(s): ca0e94a

Fix spectrogram issue

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -95,7 +95,7 @@ def enhance(filepath, model_name):
95
 
96
  # Normalize
97
  peak = np.max(np.abs(out))
98
- if peak > 1e-3:
99
  out = out / peak * 0.85
100
 
101
  # write file
 
95
 
96
  # Normalize
97
  peak = np.max(np.abs(out))
98
+ if peak > 0.05:
99
  out = out / peak * 0.85
100
 
101
  # write file