Spaces:
Running
Running
from music import music_gen | |
import gradio as gr | |
import os | |
keysignature = ["C","G","D","No selection"] | |
difficulty = ["beginner","intermediate","expert"] | |
timesignature = ['3/4','4/4','1/8','C|'] | |
# os.system("apt-get install lilypond") | |
# os.system("apt-get install fluidsynth") | |
interface = gr.Interface(fn = music_gen, | |
inputs=[gr.Radio(difficulty,label="Difficulty"), | |
gr.Radio(timesignature,label="Time Signature"), | |
gr.Dropdown(keysignature,label="Key Signature")], | |
outputs = ["image","audio"], | |
title="Sheet Music Generation for Sight-Reading", | |
description="TO be added") | |
interface.launch(inline=False) |