Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,6 @@ import numpy as np
|
|
| 4 |
import tempfile
|
| 5 |
import soundfile as sf
|
| 6 |
|
| 7 |
-
# Normalize audio using pydub
|
| 8 |
def normalize_audio(file):
|
| 9 |
if file is None:
|
| 10 |
return None
|
|
@@ -17,7 +16,7 @@ def normalize_audio(file):
|
|
| 17 |
|
| 18 |
app = gr.Interface(
|
| 19 |
fn=normalize_audio,
|
| 20 |
-
inputs=gr.Audio(
|
| 21 |
outputs=gr.Audio(type="numpy"),
|
| 22 |
title="Normalize Audio Test",
|
| 23 |
description="Upload an audio file to normalize it and get the processed audio back."
|
|
|
|
| 4 |
import tempfile
|
| 5 |
import soundfile as sf
|
| 6 |
|
|
|
|
| 7 |
def normalize_audio(file):
|
| 8 |
if file is None:
|
| 9 |
return None
|
|
|
|
| 16 |
|
| 17 |
app = gr.Interface(
|
| 18 |
fn=normalize_audio,
|
| 19 |
+
inputs=gr.Audio(type="filepath"),
|
| 20 |
outputs=gr.Audio(type="numpy"),
|
| 21 |
title="Normalize Audio Test",
|
| 22 |
description="Upload an audio file to normalize it and get the processed audio back."
|