MCPcopy Create free account
hub / github.com/FunAudioLLM/FunMusic / demo_inspiremusic_con

Function demo_inspiremusic_con

app.py:145–152  ·  view source on GitHub ↗
(text, audio, model_name, chorus,
					 output_sample_rate, max_generate_audio_seconds)

Source from the content-addressed store, hash-verified

143 return music_generation(args)
144
145def 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
154def main():
155 with gr.Blocks(theme=gr.themes.Soft()) as demo:

Callers

nothing calls this directly

Calls 3

music_generationFunction · 0.85
get_argsFunction · 0.70
trim_audioFunction · 0.70

Tested by

no test coverage detected