(text, audio, model_name, chorus, output_sample_rate, max_generate_audio_seconds)
| 143 | return music_generation(args) |
| 144 | |
| 145 | def demo_inspiremusic_con(text, audio, model_name, chorus, |
| 146 | output_sample_rate, max_generate_audio_seconds): |
| 147 | args = get_args( |
| 148 | task='continuation', text=text, audio=trim_audio(audio, cut_seconds=5), |
| 149 | model_name=model_name, chorus=chorus, |
| 150 | output_sample_rate=output_sample_rate, |
| 151 | max_generate_audio_seconds=max_generate_audio_seconds) |
| 152 | return music_generation(args) |
| 153 | |
| 154 | def main(): |
| 155 | with gr.Blocks(theme=gr.themes.Soft()) as demo: |
nothing calls this directly
no test coverage detected