Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -83,10 +83,10 @@ def process_audio(file, added_minutes):
|
|
83 |
iface = gr.Interface(
|
84 |
fn=process_audio,
|
85 |
inputs=[
|
86 |
-
gr.Audio(type="filepath"), #
|
87 |
-
gr.Slider(minimum=0, maximum=10,
|
88 |
],
|
89 |
-
outputs=gr.Audio(type="file"), #
|
90 |
title="Advanced Music Extender",
|
91 |
description="Upload an audio file, and this app will extend the music by cutting and appending a segment based on advanced audio features. Choose additional minutes to extend the audio duration."
|
92 |
)
|
|
|
83 |
iface = gr.Interface(
|
84 |
fn=process_audio,
|
85 |
inputs=[
|
86 |
+
gr.Audio(type="filepath"), # File input for audio
|
87 |
+
gr.Slider(minimum=0, maximum=10, value=1, label="Additional Minutes") # Use 'value' instead of 'default'
|
88 |
],
|
89 |
+
outputs=gr.Audio(type="file"), # Output for the extended audio
|
90 |
title="Advanced Music Extender",
|
91 |
description="Upload an audio file, and this app will extend the music by cutting and appending a segment based on advanced audio features. Choose additional minutes to extend the audio duration."
|
92 |
)
|