Sayoyo commited on
Commit
8a8cb3e
·
1 Parent(s): 80a8cf9

fix load json data

Browse files
Files changed (1) hide show
  1. ui/components.py +0 -33
ui/components.py CHANGED
@@ -892,39 +892,6 @@ def create_text2music_ui(
892
  ],
893
  )
894
 
895
- def load_data(json_file):
896
- json_file = os.path.join(output_file_dir, json_file)
897
- json_data = load_data_func(json_file)
898
- return json2output(json_data)
899
-
900
- load_bnt.click(
901
- fn=load_data,
902
- inputs=[output_files],
903
- outputs=[
904
- audio_duration,
905
- prompt,
906
- lyrics,
907
- infer_step,
908
- guidance_scale,
909
- scheduler_type,
910
- cfg_type,
911
- omega_scale,
912
- manual_seeds,
913
- guidance_interval,
914
- guidance_interval_decay,
915
- min_guidance_scale,
916
- use_erg_tag,
917
- use_erg_lyric,
918
- use_erg_diffusion,
919
- oss_steps,
920
- guidance_scale_text,
921
- guidance_scale_lyric,
922
- audio2audio_enable,
923
- ref_audio_strength,
924
- ref_audio_input,
925
- ],
926
- )
927
-
928
  text2music_bnt.click(
929
  fn=text2music_process_func,
930
  inputs=[
 
892
  ],
893
  )
894
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
895
  text2music_bnt.click(
896
  fn=text2music_process_func,
897
  inputs=[