Update app.py
Browse files
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="
|
| 31 |
-
gr.Audio(type="
|
| 32 |
],
|
| 33 |
-
outputs=gr.Audio(type="
|
| 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 |
)
|