atz21 commited on
Commit
e51570e
·
verified ·
1 Parent(s): 0c2b26d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -1,6 +1,5 @@
1
  import gradio as gr
2
  from pydub import AudioSegment
3
- import os
4
 
5
  def combine_audio(waves_file, seagulls_file):
6
  try:
@@ -27,10 +26,10 @@ def combine_audio(waves_file, seagulls_file):
27
  interface = gr.Interface(
28
  fn=combine_audio,
29
  inputs=[
30
- gr.Audio(type="file", label="Upload Waves Audio"), # Removed 'source' argument
31
- gr.Audio(type="file", label="Upload Seagulls Audio"),
32
  ],
33
- outputs=gr.Audio(type="file", label="Combined Audio"),
34
  title="Audio Combiner",
35
  description="Upload two audio files (e.g., waves and seagulls) to combine them into one seamless track.",
36
  )
 
1
  import gradio as gr
2
  from pydub import AudioSegment
 
3
 
4
  def combine_audio(waves_file, seagulls_file):
5
  try:
 
26
  interface = gr.Interface(
27
  fn=combine_audio,
28
  inputs=[
29
+ gr.Audio(type="filepath", label="Upload Waves Audio"), # Set type to "filepath"
30
+ gr.Audio(type="filepath", label="Upload Seagulls Audio"),
31
  ],
32
+ outputs=gr.Audio(type="filepath", label="Combined Audio"),
33
  title="Audio Combiner",
34
  description="Upload two audio files (e.g., waves and seagulls) to combine them into one seamless track.",
35
  )