Spaces:
Running
on
Zero
Running
on
Zero
roychao19477
commited on
Commit
·
7bf14b8
1
Parent(s):
ca0e94a
Fix spectrogram issue
Browse files
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 >
|
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
|