Spaces:
Running
on
T4
Running
on
T4
Fix bad cfg values, should be between 1 and 4
Browse files
app.py
CHANGED
@@ -482,7 +482,7 @@ def ui(**kwargs):
|
|
482 |
topk = gr.Number(label="Top-k", value=280, precision=0, interactive=True)
|
483 |
topp = gr.Number(label="Top-p", value=1150, precision=0, interactive=True)
|
484 |
temperature = gr.Number(label="Randomness Temperature", value=0.7, precision=None, interactive=True)
|
485 |
-
cfg_coef = gr.Number(label="Classifier Free Guidance", value=
|
486 |
with gr.Row():
|
487 |
seed = gr.Number(label="Seed", value=-1, precision=0, interactive=True)
|
488 |
gr.Button('\U0001f3b2\ufe0f', elem_classes="small-btn").click(fn=lambda: -1, outputs=[seed], queue=False)
|
@@ -505,7 +505,7 @@ def ui(**kwargs):
|
|
505 |
"80s Pop Synth",
|
506 |
950,
|
507 |
0.6,
|
508 |
-
|
509 |
],
|
510 |
[
|
511 |
"4/4 120bpm 320kbps 48khz, A cheerful country song with acoustic guitars",
|
@@ -514,7 +514,7 @@ def ui(**kwargs):
|
|
514 |
"Country Guitar",
|
515 |
750,
|
516 |
0.7,
|
517 |
-
|
518 |
],
|
519 |
[
|
520 |
"4/4 120bpm 320kbps 48khz, 90s rock song with electric guitar and heavy drums",
|
@@ -523,7 +523,7 @@ def ui(**kwargs):
|
|
523 |
"90s Rock Guitar",
|
524 |
1150,
|
525 |
0.7,
|
526 |
-
|
527 |
],
|
528 |
[
|
529 |
"4/4 120bpm 320kbps 48khz, a light and cheerly EDM track, with syncopated drums, aery pads, and strong emotions",
|
@@ -532,7 +532,7 @@ def ui(**kwargs):
|
|
532 |
"EDM my Bach",
|
533 |
500,
|
534 |
0.7,
|
535 |
-
3.
|
536 |
],
|
537 |
[
|
538 |
"4/4 320kbps 48khz, lofi slow bpm electro chill with organic samples",
|
@@ -541,7 +541,7 @@ def ui(**kwargs):
|
|
541 |
"LoFi Chill",
|
542 |
1150,
|
543 |
0.7,
|
544 |
-
|
545 |
],
|
546 |
],
|
547 |
inputs=[text, melody_filepath, model, title, topp, temperature, cfg_coef],
|
|
|
482 |
topk = gr.Number(label="Top-k", value=280, precision=0, interactive=True)
|
483 |
topp = gr.Number(label="Top-p", value=1150, precision=0, interactive=True)
|
484 |
temperature = gr.Number(label="Randomness Temperature", value=0.7, precision=None, interactive=True)
|
485 |
+
cfg_coef = gr.Number(label="Classifier Free Guidance", value=3.0, precision=None, interactive=True)
|
486 |
with gr.Row():
|
487 |
seed = gr.Number(label="Seed", value=-1, precision=0, interactive=True)
|
488 |
gr.Button('\U0001f3b2\ufe0f', elem_classes="small-btn").click(fn=lambda: -1, outputs=[seed], queue=False)
|
|
|
505 |
"80s Pop Synth",
|
506 |
950,
|
507 |
0.6,
|
508 |
+
3.1
|
509 |
],
|
510 |
[
|
511 |
"4/4 120bpm 320kbps 48khz, A cheerful country song with acoustic guitars",
|
|
|
514 |
"Country Guitar",
|
515 |
750,
|
516 |
0.7,
|
517 |
+
3.75
|
518 |
],
|
519 |
[
|
520 |
"4/4 120bpm 320kbps 48khz, 90s rock song with electric guitar and heavy drums",
|
|
|
523 |
"90s Rock Guitar",
|
524 |
1150,
|
525 |
0.7,
|
526 |
+
3.5
|
527 |
],
|
528 |
[
|
529 |
"4/4 120bpm 320kbps 48khz, a light and cheerly EDM track, with syncopated drums, aery pads, and strong emotions",
|
|
|
532 |
"EDM my Bach",
|
533 |
500,
|
534 |
0.7,
|
535 |
+
3.25
|
536 |
],
|
537 |
[
|
538 |
"4/4 320kbps 48khz, lofi slow bpm electro chill with organic samples",
|
|
|
541 |
"LoFi Chill",
|
542 |
1150,
|
543 |
0.7,
|
544 |
+
3.0
|
545 |
],
|
546 |
],
|
547 |
inputs=[text, melody_filepath, model, title, topp, temperature, cfg_coef],
|