Spaces:
Running
Running
File size: 646 Bytes
e08994d b4654f2 824146a e08994d 824146a e08994d 824146a e08994d 824146a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
from music import music_gen
import gradio as gr
import os
from music import GlobalUIGallery
keysignature = ["C","G","D","No selection"]
difficulty = ["beginner","intermediate","expert"]
timesignature = ['3/4','4/4','1/8']
output = gr.Gallery() if GlobalUIGallery else "image"
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 = [gr.Gallery(label="Sheet Music"),gr.Audio(label="Audio")],
title="Sheet Music Generation for Sight-Reading",
description="TO be added")
interface.launch(inline=False) |