Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -94,14 +94,15 @@ def audio_to_video(audio_file, image_file, effect_type="waveform"):
|
|
94 |
iface = gr.Interface(
|
95 |
fn=audio_to_video,
|
96 |
inputs=[
|
97 |
-
|
98 |
-
gr.
|
99 |
-
gr.
|
|
|
100 |
],
|
101 |
-
outputs="video"
|
102 |
title="Audio to Video Generator",
|
103 |
-
description="Sube un
|
104 |
-
examples=[["audio_example.wav", "image_example.jpg", "waveform"]]
|
105 |
)
|
106 |
|
107 |
|
|
|
94 |
iface = gr.Interface(
|
95 |
fn=audio_to_video,
|
96 |
inputs=[
|
97 |
+
# Eliminamos 'source="upload"' (no es necesario en Gradio 4.x)
|
98 |
+
gr.Audio(type="filepath", label="Subir Archivo de Audio (WAV o MP3)"),
|
99 |
+
gr.Image(type="filepath", label="Subir Imagen"),
|
100 |
+
gr.Radio(["waveform"], value="waveform", label="Tipo de Efecto Visual")
|
101 |
],
|
102 |
+
outputs=gr.Video(label="Video Generado"), # Usar gr.Video() en lugar de "video"
|
103 |
title="Audio to Video Generator",
|
104 |
+
description="Sube un audio y una imagen para generar un video con efecto visual sincronizado.",
|
105 |
+
examples=[["audio_example.wav", "image_example.jpg", "waveform"]]
|
106 |
)
|
107 |
|
108 |
|