import gradio as gr import os os.system("midi_ddsp_download_model_weights") def greet(name): """ :param name: file """ ret = "Hello " + name.name + "!" ret += '\n Current working dir: ' + os.getcwd() + '\n' return ret demo = gr.Interface( greet, gr.File(file_types=[".mid", ".midi"]), "file", examples=['ode_to_joy.mid'] ) if __name__ == "__main__": demo.launch()