Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
import
|
| 2 |
from pydub import AudioSegment
|
| 3 |
import tempfile
|
| 4 |
|
|
@@ -6,7 +6,6 @@ def clean_and_master(audio_file):
|
|
| 6 |
# Load the audio
|
| 7 |
audio = AudioSegment.from_file(audio_file)
|
| 8 |
|
| 9 |
-
# [Placeholder for AI-based cleaning/mastering]
|
| 10 |
# Example: basic normalization
|
| 11 |
cleaned = audio.normalize()
|
| 12 |
|
|
@@ -23,4 +22,4 @@ iface = gr.Interface(
|
|
| 23 |
description="Upload your audio to clean and master it with AI!"
|
| 24 |
)
|
| 25 |
|
| 26 |
-
iface.launch()
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
from pydub import AudioSegment
|
| 3 |
import tempfile
|
| 4 |
|
|
|
|
| 6 |
# Load the audio
|
| 7 |
audio = AudioSegment.from_file(audio_file)
|
| 8 |
|
|
|
|
| 9 |
# Example: basic normalization
|
| 10 |
cleaned = audio.normalize()
|
| 11 |
|
|
|
|
| 22 |
description="Upload your audio to clean and master it with AI!"
|
| 23 |
)
|
| 24 |
|
| 25 |
+
iface.launch()
|