Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -234,6 +234,14 @@ def ai_mastering_chain(audio_path, genre="Pop", target_lufs=-14.0):
|
|
| 234 |
final_audio.export(out_path, format="wav")
|
| 235 |
return out_path
|
| 236 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 237 |
# === Harmonic Saturation / Exciter – Now Included ===
|
| 238 |
def harmonic_saturation(audio, saturation_type="Tube", intensity=0.2):
|
| 239 |
samples = np.array(audio.get_array_of_samples()).astype(np.float32)
|
|
|
|
| 234 |
final_audio.export(out_path, format="wav")
|
| 235 |
return out_path
|
| 236 |
|
| 237 |
+
# === AI Remastering Tab – New Feature ===
|
| 238 |
+
def ai_remaster(audio_path):
|
| 239 |
+
try:
|
| 240 |
+
# ... paste function here ...
|
| 241 |
+
return final_path
|
| 242 |
+
except Exception as e:
|
| 243 |
+
return None
|
| 244 |
+
|
| 245 |
# === Harmonic Saturation / Exciter – Now Included ===
|
| 246 |
def harmonic_saturation(audio, saturation_type="Tube", intensity=0.2):
|
| 247 |
samples = np.array(audio.get_array_of_samples()).astype(np.float32)
|