adding bpm, key, and scale to settings under audiogen
Browse fileswith gr.Row():
struc_prompts = gr.Checkbox(label="Enable", value=False, interactive=True, container=False)
bpm = gr.Number(label="BPM", value=120, interactive=True, scale=1, precision=0)
key = gr.Dropdown(["C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "Bb", "B"], label="Key", value="C", interactive=True)
scale = gr.Dropdown(["Major", "Minor"], label="Scale", value="Major", interactive=True)
app.py
CHANGED
@@ -1037,6 +1037,11 @@ def ui_full(launch_kwargs):
|
|
1037 |
dropdown = gr.Dropdown(choices=get_available_models(), value=("No models found" if len(get_available_models()) < 1 else get_available_models()[0]), label='Custom Model (models folder)', elem_classes='slim-dropdown', interactive=True)
|
1038 |
ui.create_refresh_button(dropdown, lambda: None, lambda: {'choices': get_available_models()}, 'refresh-button')
|
1039 |
basemodel = gr.Radio(["small", "medium", "melody", "large"], label="Base Model", value="medium", interactive=True, scale=1)
|
|
|
|
|
|
|
|
|
|
|
1040 |
with gr.Row():
|
1041 |
model_a = gr.Radio(["medium"], label="Model", value="medium", interactive=False, visible=False)
|
1042 |
decoder_a = gr.Radio(["Default"], label="Decoder", value="Default", interactive=False, visible=False)
|
|
|
1037 |
dropdown = gr.Dropdown(choices=get_available_models(), value=("No models found" if len(get_available_models()) < 1 else get_available_models()[0]), label='Custom Model (models folder)', elem_classes='slim-dropdown', interactive=True)
|
1038 |
ui.create_refresh_button(dropdown, lambda: None, lambda: {'choices': get_available_models()}, 'refresh-button')
|
1039 |
basemodel = gr.Radio(["small", "medium", "melody", "large"], label="Base Model", value="medium", interactive=True, scale=1)
|
1040 |
+
with gr.Row():
|
1041 |
+
struc_prompts = gr.Checkbox(label="Enable", value=False, interactive=True, container=False)
|
1042 |
+
bpm = gr.Number(label="BPM", value=120, interactive=True, scale=1, precision=0)
|
1043 |
+
key = gr.Dropdown(["C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "Bb", "B"], label="Key", value="C", interactive=True)
|
1044 |
+
scale = gr.Dropdown(["Major", "Minor"], label="Scale", value="Major", interactive=True)
|
1045 |
with gr.Row():
|
1046 |
model_a = gr.Radio(["medium"], label="Model", value="medium", interactive=False, visible=False)
|
1047 |
decoder_a = gr.Radio(["Default"], label="Decoder", value="Default", interactive=False, visible=False)
|