breadlicker45
commited on
Commit
•
260ea1d
1
Parent(s):
fc2f33e
Update playground.py
Browse files- playground.py +7 -7
playground.py
CHANGED
@@ -17,7 +17,7 @@ matplotlib.use("Agg")
|
|
17 |
sys.modules["pylab"] = pylab
|
18 |
|
19 |
model_repo = "JammyMachina/elec-gmusic-familized-model-13-12__17-35-53"
|
20 |
-
n_bar_generated =
|
21 |
# model_repo = "JammyMachina/improved_4bars-mdl"
|
22 |
# n_bar_generated = 4
|
23 |
|
@@ -124,15 +124,15 @@ def instrument_row(default_inst, row_id):
|
|
124 |
label="Instrument",
|
125 |
)
|
126 |
temp = gr.Dropdown(
|
127 |
-
[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1],
|
128 |
value=0.7,
|
129 |
label="Creativity",
|
130 |
)
|
131 |
-
density = gr.Dropdown([1, 2, 3], value=3, label="Note Density")
|
132 |
|
133 |
with gr.Column(scale=3):
|
134 |
output_txt = gr.Textbox(
|
135 |
-
label="output", lines=10, max_lines=
|
136 |
)
|
137 |
with gr.Column(scale=1, min_width=100):
|
138 |
inst_audio = gr.Audio(label="TRACK Audio", show_label=True)
|
@@ -173,11 +173,11 @@ with gr.Blocks() as demo:
|
|
173 |
"""
|
174 |
)
|
175 |
track1_md = gr.Markdown(""" ## TRACK 1 """)
|
176 |
-
instrument_row("Drums",
|
177 |
track1_md = gr.Markdown(""" ## TRACK 2 """)
|
178 |
-
instrument_row("Synth Bass 1",
|
179 |
track1_md = gr.Markdown(""" ## TRACK 2 """)
|
180 |
-
instrument_row("Synth Lead Square",
|
181 |
# instrument_row("Piano")
|
182 |
|
183 |
demo.launch(debug=True)
|
|
|
17 |
sys.modules["pylab"] = pylab
|
18 |
|
19 |
model_repo = "JammyMachina/elec-gmusic-familized-model-13-12__17-35-53"
|
20 |
+
n_bar_generated = 25
|
21 |
# model_repo = "JammyMachina/improved_4bars-mdl"
|
22 |
# n_bar_generated = 4
|
23 |
|
|
|
124 |
label="Instrument",
|
125 |
)
|
126 |
temp = gr.Dropdown(
|
127 |
+
[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1, 1.2, 1.3],
|
128 |
value=0.7,
|
129 |
label="Creativity",
|
130 |
)
|
131 |
+
density = gr.Dropdown([1, 2, 3, 4, 5, 6, 7 , 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], value=3, label="Note Density")
|
132 |
|
133 |
with gr.Column(scale=3):
|
134 |
output_txt = gr.Textbox(
|
135 |
+
label="output", lines=10, max_lines=160, show_label=False
|
136 |
)
|
137 |
with gr.Column(scale=1, min_width=100):
|
138 |
inst_audio = gr.Audio(label="TRACK Audio", show_label=True)
|
|
|
173 |
"""
|
174 |
)
|
175 |
track1_md = gr.Markdown(""" ## TRACK 1 """)
|
176 |
+
instrument_row("Drums", 4)
|
177 |
track1_md = gr.Markdown(""" ## TRACK 2 """)
|
178 |
+
instrument_row("Synth Bass 1", 5)
|
179 |
track1_md = gr.Markdown(""" ## TRACK 2 """)
|
180 |
+
instrument_row("Synth Lead Square", 6)
|
181 |
# instrument_row("Piano")
|
182 |
|
183 |
demo.launch(debug=True)
|