aifeifei798 commited on
Commit
3aed165
·
verified ·
1 Parent(s): db9ba7e

Update ui/components.py

Browse files
Files changed (1) hide show
  1. ui/components.py +2 -2
ui/components.py CHANGED
@@ -68,9 +68,9 @@ def update_tags_from_preset(preset_name):
68
  return GENRE_PRESETS.get(preset_name, "")
69
 
70
 
71
- def create_output_ui(task_name="文本转音乐"):
72
  # For many consumer-grade GPU devices, only one batch can be run
73
- output_audio1 = gr.Audio(type="filepath", label=f"{task_name} 生成的音频 1")
74
  # output_audio2 = gr.Audio(type="filepath", label="Generated Audio 2")
75
  with gr.Accordion(f"{task_name} 参数(凭据)", open=False):
76
  input_params_json = gr.JSON(label=f"{task_name} 参数")
 
68
  return GENRE_PRESETS.get(preset_name, "")
69
 
70
 
71
+ def create_output_ui(task_name="已生成的"):
72
  # For many consumer-grade GPU devices, only one batch can be run
73
+ output_audio1 = gr.Audio(type="filepath", label=f"{task_name} ")
74
  # output_audio2 = gr.Audio(type="filepath", label="Generated Audio 2")
75
  with gr.Accordion(f"{task_name} 参数(凭据)", open=False):
76
  input_params_json = gr.JSON(label=f"{task_name} 参数")