updated model version
Browse files- playground.py +5 -5
playground.py
CHANGED
@@ -17,13 +17,13 @@ matplotlib.use("Agg")
|
|
17 |
sys.modules["pylab"] = pylab
|
18 |
|
19 |
model_repo = "JammyMachina/elec-gmusic-familized-model-13-12__17-35-53"
|
20 |
-
revision = "ddf00f90d6d27e4cc0cb99c04a22a8f0a16c933e"
|
21 |
n_bar_generated = 8
|
22 |
# model_repo = "JammyMachina/improved_4bars-mdl"
|
23 |
# n_bar_generated = 4
|
24 |
|
25 |
model, tokenizer = LoadModel(
|
26 |
-
model_repo,
|
|
|
27 |
).load_model_and_tokenizer()
|
28 |
|
29 |
miditok = get_miditok()
|
@@ -167,9 +167,9 @@ with gr.Blocks() as demo:
|
|
167 |
piano_roll = gr.Plot(label="Piano Roll", show_label=False)
|
168 |
description = gr.Markdown(
|
169 |
"""
|
170 |
-
For each **TRACK** choose your **instrument**, along with **creativity** (temperature) and **note density** and **hit the generate Button
|
171 |
-
You can have a look at the generated text
|
172 |
-
If you don't like the track, hit the generate button to regenerate it! Generate more tracks and listen to the **mixed audio
|
173 |
"""
|
174 |
)
|
175 |
track1_md = gr.Markdown(""" ## TRACK 1 """)
|
|
|
17 |
sys.modules["pylab"] = pylab
|
18 |
|
19 |
model_repo = "JammyMachina/elec-gmusic-familized-model-13-12__17-35-53"
|
|
|
20 |
n_bar_generated = 8
|
21 |
# model_repo = "JammyMachina/improved_4bars-mdl"
|
22 |
# n_bar_generated = 4
|
23 |
|
24 |
model, tokenizer = LoadModel(
|
25 |
+
model_repo,
|
26 |
+
from_huggingface=True,
|
27 |
).load_model_and_tokenizer()
|
28 |
|
29 |
miditok = get_miditok()
|
|
|
167 |
piano_roll = gr.Plot(label="Piano Roll", show_label=False)
|
168 |
description = gr.Markdown(
|
169 |
"""
|
170 |
+
For each **TRACK** choose your **instrument**, along with **creativity** (temperature) and **note density** and **hit the generate Button**!
|
171 |
+
You can have a look at the generated text, but most importantly, check the **piano roll** and listen to the track's generated audio!
|
172 |
+
If you don't like the track, hit the generate button to regenerate it! Generate more tracks and listen to the **mixed audio**!
|
173 |
"""
|
174 |
)
|
175 |
track1_md = gr.Markdown(""" ## TRACK 1 """)
|