Spaces:
Runtime error
Runtime error
Commit
·
9a6eeed
1
Parent(s):
910a3f3
Update playground.py
Browse files- playground.py +4 -4
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, 4, 5, 6, 7 , 8, 9, 10], 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)
|
|
|
|
| 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, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2],
|
| 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], 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)
|