Spaces:
Running
on
A100
Running
on
A100
fix bugs
Browse files
acestep/gradio_ui/events/__init__.py
CHANGED
|
@@ -311,6 +311,7 @@ def setup_event_handlers(demo, dit_handler, llm_handler, dataset_handler, datase
|
|
| 311 |
generation_section["cfg_interval_start"],
|
| 312 |
generation_section["cfg_interval_end"],
|
| 313 |
generation_section["shift"],
|
|
|
|
| 314 |
generation_section["audio_format"],
|
| 315 |
generation_section["lm_temperature"],
|
| 316 |
generation_section["lm_cfg_scale"],
|
|
@@ -508,6 +509,7 @@ def setup_event_handlers(demo, dit_handler, llm_handler, dataset_handler, datase
|
|
| 508 |
generation_section["cfg_interval_start"],
|
| 509 |
generation_section["cfg_interval_end"],
|
| 510 |
generation_section["shift"],
|
|
|
|
| 511 |
generation_section["audio_format"],
|
| 512 |
generation_section["lm_temperature"],
|
| 513 |
generation_section["think_checkbox"],
|
|
@@ -694,6 +696,7 @@ def setup_event_handlers(demo, dit_handler, llm_handler, dataset_handler, datase
|
|
| 694 |
generation_section["cfg_interval_start"],
|
| 695 |
generation_section["cfg_interval_end"],
|
| 696 |
generation_section["shift"],
|
|
|
|
| 697 |
generation_section["audio_format"],
|
| 698 |
generation_section["lm_temperature"],
|
| 699 |
generation_section["think_checkbox"],
|
|
|
|
| 311 |
generation_section["cfg_interval_start"],
|
| 312 |
generation_section["cfg_interval_end"],
|
| 313 |
generation_section["shift"],
|
| 314 |
+
generation_section["infer_method"],
|
| 315 |
generation_section["audio_format"],
|
| 316 |
generation_section["lm_temperature"],
|
| 317 |
generation_section["lm_cfg_scale"],
|
|
|
|
| 509 |
generation_section["cfg_interval_start"],
|
| 510 |
generation_section["cfg_interval_end"],
|
| 511 |
generation_section["shift"],
|
| 512 |
+
generation_section["infer_method"],
|
| 513 |
generation_section["audio_format"],
|
| 514 |
generation_section["lm_temperature"],
|
| 515 |
generation_section["think_checkbox"],
|
|
|
|
| 696 |
generation_section["cfg_interval_start"],
|
| 697 |
generation_section["cfg_interval_end"],
|
| 698 |
generation_section["shift"],
|
| 699 |
+
generation_section["infer_method"],
|
| 700 |
generation_section["audio_format"],
|
| 701 |
generation_section["lm_temperature"],
|
| 702 |
generation_section["think_checkbox"],
|
acestep/gradio_ui/events/results_handlers.py
CHANGED
|
@@ -596,7 +596,7 @@ def generate_with_progress(
|
|
| 596 |
# Clear lrc_display with empty string - this triggers .change() to clear subtitles
|
| 597 |
clear_lrcs = [gr.update(value="", visible=True) for _ in range(8)]
|
| 598 |
clear_accordions = [gr.skip() for _ in range(8)] # Don't change accordion visibility
|
| 599 |
-
dump_audio = [gr.update(value=
|
| 600 |
yield (
|
| 601 |
# Audio outputs - just skip, value will be updated in loop
|
| 602 |
# Subtitles will be cleared via lrc_display.change()
|
|
@@ -1311,7 +1311,7 @@ def capture_current_params(
|
|
| 1311 |
reference_audio, audio_duration, batch_size_input, src_audio,
|
| 1312 |
text2music_audio_code_string, repainting_start, repainting_end,
|
| 1313 |
instruction_display_gen, audio_cover_strength, task_type,
|
| 1314 |
-
use_adg, cfg_interval_start, cfg_interval_end, shift, audio_format, lm_temperature,
|
| 1315 |
think_checkbox, lm_cfg_scale, lm_top_k, lm_top_p, lm_negative_prompt,
|
| 1316 |
use_cot_metas, use_cot_caption, use_cot_language,
|
| 1317 |
constrained_decoding_debug, allow_lm_batch, auto_score, auto_lrc, score_scale, lm_batch_chunk_size,
|
|
@@ -1348,6 +1348,7 @@ def capture_current_params(
|
|
| 1348 |
"cfg_interval_start": cfg_interval_start,
|
| 1349 |
"cfg_interval_end": cfg_interval_end,
|
| 1350 |
"shift": shift,
|
|
|
|
| 1351 |
"audio_format": audio_format,
|
| 1352 |
"lm_temperature": lm_temperature,
|
| 1353 |
"think_checkbox": think_checkbox,
|
|
@@ -1376,7 +1377,7 @@ def generate_with_batch_management(
|
|
| 1376 |
reference_audio, audio_duration, batch_size_input, src_audio,
|
| 1377 |
text2music_audio_code_string, repainting_start, repainting_end,
|
| 1378 |
instruction_display_gen, audio_cover_strength, task_type,
|
| 1379 |
-
use_adg, cfg_interval_start, cfg_interval_end, shift, audio_format, lm_temperature,
|
| 1380 |
think_checkbox, lm_cfg_scale, lm_top_k, lm_top_p, lm_negative_prompt,
|
| 1381 |
use_cot_metas, use_cot_caption, use_cot_language, is_format_caption,
|
| 1382 |
constrained_decoding_debug,
|
|
@@ -1405,7 +1406,7 @@ def generate_with_batch_management(
|
|
| 1405 |
reference_audio, audio_duration, batch_size_input, src_audio,
|
| 1406 |
text2music_audio_code_string, repainting_start, repainting_end,
|
| 1407 |
instruction_display_gen, audio_cover_strength, task_type,
|
| 1408 |
-
use_adg, cfg_interval_start, cfg_interval_end, shift, audio_format, lm_temperature,
|
| 1409 |
think_checkbox, lm_cfg_scale, lm_top_k, lm_top_p, lm_negative_prompt,
|
| 1410 |
use_cot_metas, use_cot_caption, use_cot_language, is_format_caption,
|
| 1411 |
constrained_decoding_debug,
|
|
@@ -1485,6 +1486,7 @@ def generate_with_batch_management(
|
|
| 1485 |
"cfg_interval_start": cfg_interval_start,
|
| 1486 |
"cfg_interval_end": cfg_interval_end,
|
| 1487 |
"shift": shift,
|
|
|
|
| 1488 |
"audio_format": audio_format,
|
| 1489 |
"lm_temperature": lm_temperature,
|
| 1490 |
"think_checkbox": think_checkbox,
|
|
@@ -1670,6 +1672,7 @@ def generate_next_batch_background(
|
|
| 1670 |
params.setdefault("cfg_interval_start", 0.0)
|
| 1671 |
params.setdefault("cfg_interval_end", 1.0)
|
| 1672 |
params.setdefault("shift", 1.0)
|
|
|
|
| 1673 |
params.setdefault("audio_format", "mp3")
|
| 1674 |
params.setdefault("lm_temperature", 0.85)
|
| 1675 |
params.setdefault("think_checkbox", True)
|
|
@@ -1720,6 +1723,7 @@ def generate_next_batch_background(
|
|
| 1720 |
cfg_interval_start=params.get("cfg_interval_start"),
|
| 1721 |
cfg_interval_end=params.get("cfg_interval_end"),
|
| 1722 |
shift=params.get("shift"),
|
|
|
|
| 1723 |
audio_format=params.get("audio_format"),
|
| 1724 |
lm_temperature=params.get("lm_temperature"),
|
| 1725 |
think_checkbox=params.get("think_checkbox"),
|
|
|
|
| 596 |
# Clear lrc_display with empty string - this triggers .change() to clear subtitles
|
| 597 |
clear_lrcs = [gr.update(value="", visible=True) for _ in range(8)]
|
| 598 |
clear_accordions = [gr.skip() for _ in range(8)] # Don't change accordion visibility
|
| 599 |
+
dump_audio = [gr.update(value=None, subtitles=None) for _ in range(8)]
|
| 600 |
yield (
|
| 601 |
# Audio outputs - just skip, value will be updated in loop
|
| 602 |
# Subtitles will be cleared via lrc_display.change()
|
|
|
|
| 1311 |
reference_audio, audio_duration, batch_size_input, src_audio,
|
| 1312 |
text2music_audio_code_string, repainting_start, repainting_end,
|
| 1313 |
instruction_display_gen, audio_cover_strength, task_type,
|
| 1314 |
+
use_adg, cfg_interval_start, cfg_interval_end, shift, infer_method, audio_format, lm_temperature,
|
| 1315 |
think_checkbox, lm_cfg_scale, lm_top_k, lm_top_p, lm_negative_prompt,
|
| 1316 |
use_cot_metas, use_cot_caption, use_cot_language,
|
| 1317 |
constrained_decoding_debug, allow_lm_batch, auto_score, auto_lrc, score_scale, lm_batch_chunk_size,
|
|
|
|
| 1348 |
"cfg_interval_start": cfg_interval_start,
|
| 1349 |
"cfg_interval_end": cfg_interval_end,
|
| 1350 |
"shift": shift,
|
| 1351 |
+
"infer_method": infer_method,
|
| 1352 |
"audio_format": audio_format,
|
| 1353 |
"lm_temperature": lm_temperature,
|
| 1354 |
"think_checkbox": think_checkbox,
|
|
|
|
| 1377 |
reference_audio, audio_duration, batch_size_input, src_audio,
|
| 1378 |
text2music_audio_code_string, repainting_start, repainting_end,
|
| 1379 |
instruction_display_gen, audio_cover_strength, task_type,
|
| 1380 |
+
use_adg, cfg_interval_start, cfg_interval_end, shift, infer_method, audio_format, lm_temperature,
|
| 1381 |
think_checkbox, lm_cfg_scale, lm_top_k, lm_top_p, lm_negative_prompt,
|
| 1382 |
use_cot_metas, use_cot_caption, use_cot_language, is_format_caption,
|
| 1383 |
constrained_decoding_debug,
|
|
|
|
| 1406 |
reference_audio, audio_duration, batch_size_input, src_audio,
|
| 1407 |
text2music_audio_code_string, repainting_start, repainting_end,
|
| 1408 |
instruction_display_gen, audio_cover_strength, task_type,
|
| 1409 |
+
use_adg, cfg_interval_start, cfg_interval_end, shift, infer_method, audio_format, lm_temperature,
|
| 1410 |
think_checkbox, lm_cfg_scale, lm_top_k, lm_top_p, lm_negative_prompt,
|
| 1411 |
use_cot_metas, use_cot_caption, use_cot_language, is_format_caption,
|
| 1412 |
constrained_decoding_debug,
|
|
|
|
| 1486 |
"cfg_interval_start": cfg_interval_start,
|
| 1487 |
"cfg_interval_end": cfg_interval_end,
|
| 1488 |
"shift": shift,
|
| 1489 |
+
"infer_method": infer_method,
|
| 1490 |
"audio_format": audio_format,
|
| 1491 |
"lm_temperature": lm_temperature,
|
| 1492 |
"think_checkbox": think_checkbox,
|
|
|
|
| 1672 |
params.setdefault("cfg_interval_start", 0.0)
|
| 1673 |
params.setdefault("cfg_interval_end", 1.0)
|
| 1674 |
params.setdefault("shift", 1.0)
|
| 1675 |
+
params.setdefault("infer_method", "ode")
|
| 1676 |
params.setdefault("audio_format", "mp3")
|
| 1677 |
params.setdefault("lm_temperature", 0.85)
|
| 1678 |
params.setdefault("think_checkbox", True)
|
|
|
|
| 1723 |
cfg_interval_start=params.get("cfg_interval_start"),
|
| 1724 |
cfg_interval_end=params.get("cfg_interval_end"),
|
| 1725 |
shift=params.get("shift"),
|
| 1726 |
+
infer_method=params.get("infer_method"),
|
| 1727 |
audio_format=params.get("audio_format"),
|
| 1728 |
lm_temperature=params.get("lm_temperature"),
|
| 1729 |
think_checkbox=params.get("think_checkbox"),
|