Spaces:
Runtime error
Runtime error
File size: 405 Bytes
2a30524 8d2ccf0 2a30524 22813b9 2a30524 a698ba6 2a30524 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import gradio as gr
print("Gradio version:", gr.__version__)
def echo(audio_path):
print(f"Received audio_path: {audio_path}")
return "You uploaded: " + str(audio_path)
demo = gr.Interface(
fn=echo,
#inputs=gr.Audio(type="filepath", label="Upload Audio"),
inputs=gr.Audio(label="Upload Audio"),
outputs=gr.Textbox(label="Output"),
)
if __name__ == "__main__":
demo.launch()
|