Spaces:
Sleeping
Sleeping
Commit ·
a3e1a45
1
Parent(s): dbd5035
refined control panel
Browse filesFiles changed (2)
- app.py+5-2
- web/score-player.css+21-12
447 unmodified lines448449450451452453454455456457447 unmodified linesallow_custom_value=True)prompt = gr.Textbox(label='Metadata prompt', lines=3, value='',placeholder='extra metadata lines, e.g.\n[key "C major"]\n(optional)')measures = gr.Number(label='Measures (0 = let model decide)', value=0, precision=0)with gr.Row():temperature = gr.Slider(0.0, 2.0, value=1.0, step=0.05, label='temperature')max_patches = gr.Number(label='max patches', value=1024, precision=0)seed = gr.Slider(0, 2147483647, value=42, step=1, label='seed')with gr.Row():gen_btn = gr.Button('Generate', variant='primary', elem_id='gen-btn')447 unmodified lines448449450451452453454455456457458459460447 unmodified linesallow_custom_value=True)prompt = gr.Textbox(label='Metadata prompt', lines=3, value='',placeholder='extra metadata lines, e.g.\n[key "C major"]\n(optional)')gr.Markdown('- Length')with gr.Row():measures = gr.Number(label='Measures (0 = let model decide)', value=0, precision=0)max_patches = gr.Number(label='max patches', value=1024, precision=0)gr.Markdown('- Sampler')with gr.Row():temperature = gr.Slider(0.0, 2.0, value=1.0, step=0.05, label='temperature')seed = gr.Slider(0, 2147483647, value=42, step=1, label='seed')with gr.Row():gen_btn = gr.Button('Generate', variant='primary', elem_id='gen-btn')
1234511 unmodified lines1718192021222324252627282930313233343536373839404157 unmodified lines991001011021031041057 unmodified lines113114115116117118119120121122/* LilyScript score player — preview + transport. Light theme to match Gradio Soft. */.ls-score-root {display: flex;flex-direction: column;11 unmodified linesposition: relative;}.ls-status {font-size: 12px;color: #888;min-height: 16px;margin-bottom: 4px;}.ls-status.ls-busy { color: #2b7; }.ls-status.ls-err { color: #c0392b; }/* multi-line parse errors: preserve the caret alignment, wrap overflow. The redcolor needs !important to beat Gradio's `.prose * { color: ... }`, which setscolor directly on every descendant (so `color: inherit` from .ls-err loses). */.ls-status.ls-err .ls-err-pre {margin: 0;font-family: ui-monospace, Consolas, Monaco, monospace;font-size: 11px;line-height: 1.35;white-space: pre-wrap;word-break: break-word;color: #c0392b !important;}.ls-svg {57 unmodified linesborder-radius: 8px;}.ls-btn {border: 1px solid #d0d0d6;background: #fff;color: #333;7 unmodified linesalign-items: center;justify-content: center;}.ls-btn:hover:not(:disabled) { border-color: #8aa; background: #f0f6ff; }.ls-btn:disabled { opacity: 0.4; cursor: not-allowed; }.ls-time {font-family: ui-monospace, Consolas, monospace;font-size: 12px;color: #555;1234567891011121314151611 unmodified lines282930313233343536373839404142434445464748495057 unmodified lines1081091101111121131147 unmodified lines122123124125126127128129130131/* LilyScript score player — preview + transport. Light theme to match Gradio Soft. *//* Gradio's `.gradio-container .prose * { color: var(--body-text-color) }` sets acolor DIRECTLY on every descendant of our mount, overriding anything we set byinheritance and out-specifying a plain class. We mount under id #ls-score, soprefixing our color rules with that id (specificity beats two classes) lets themwin WITHOUT !important. This base rule pins the default text color for the wholesubtree; the specific rules below override per element. (The SVG ink color is aseparate concern — see the `.ls-svg svg` block.) */#ls-score, #ls-score :where(.ls-status, .ls-btn, .ls-time, .ls-err-pre, span, div, button) {color: #333;}.ls-score-root {display: flex;flex-direction: column;11 unmodified linesposition: relative;}#ls-score .ls-status {font-size: 12px;color: #888;min-height: 16px;margin-bottom: 4px;}#ls-score .ls-status.ls-busy { color: #2b7; }#ls-score .ls-status.ls-err { color: #c0392b; }/* multi-line parse errors: preserve the caret alignment, wrap overflow. */#ls-score .ls-status.ls-err .ls-err-pre {margin: 0;font-family: ui-monospace, Consolas, Monaco, monospace;font-size: 11px;line-height: 1.35;white-space: pre-wrap;word-break: break-word;color: #c0392b;}.ls-svg {57 unmodified linesborder-radius: 8px;}#ls-score .ls-btn {border: 1px solid #d0d0d6;background: #fff;color: #333;7 unmodified linesalign-items: center;justify-content: center;}#ls-score .ls-btn:hover:not(:disabled) { border-color: #8aa; background: #f0f6ff; }#ls-score .ls-btn:disabled { opacity: 0.4; cursor: not-allowed; }#ls-score .ls-time {font-family: ui-monospace, Consolas, monospace;font-size: 12px;color: #555;
app.py+5-2
web/score-player.css+21-12