File size: 345 Bytes
f8c0a29
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import gradio as gr
from transformers import pipeline
from audio2hero import generate_midi

gradio_app = gr.Interface(
    generate_midi,
    inputs=gr.Audio(label="Input Audio", type="filepath"),
    outputs=gr.File(label="Output MIDI"),
    title="Audio2Hero AI Autocharter for CloneHero",
)

if __name__ == "__main__":
    gradio_app.launch()