szili2011 commited on
Commit
d41861e
·
verified ·
1 Parent(s): 54150ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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"), # Removed the source argument
87
- gr.Slider(minimum=0, maximum=10, default=1, label="Additional Minutes")
88
  ],
89
- outputs=gr.Audio(type="file"), # Updated here
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
  )