import gradio as gr css = """ .container { height: 150px; } """ def submit(): print("hallo") with gr.Blocks(css=css) as demo: with gr.Column(): gr.HTML(value="
logo
GenreMorpher
hfu_logo
") with gr.Row(): melody = gr.Audio(label="Upload your audio", interactive=True, sources=["upload"], elem_classes=["container"]) otherMelody = gr.Dropdown(["Game of Thrones", "bLa"], label="Or choose one of our audios") genre = gr.Dropdown(["Metal", "Hardstyle", "Klassik"], label="Select Genre") btn = gr.Button(value="Generate") btn.click(submit) output = gr.Video(label="Generated Music", interactive=False, elem_classes=["container"]) audio_output = gr.Audio(label="Generated Music (wav)", type='filepath', interactive=False) gr.Markdown( """ [GenreMorpher](https://github.com/larimei/Music-KI) is a project for the course AI in Music from the Hochschule Furtwangen. This app changes the style and genre of the uploaded audio file and generates a new one. Created by Jonathan Rissler, Lennard Hurst and Lara Meister """ ) demo.launch(share=False, allowed_paths=["logo.png"])