import gradio as gr caption = gr.Blocks.load(name="spaces/SRDdev/Image-Caption") audio_gen = gr.Blocks.load(name="spaces/haoheliu/audioldm-text-to-audio-generation") def infer(image_input): cap = caption(image_input, fn_index=0) sound = audio_gen(cap, 5, 2.5, 45, 3, fn_index=0) return sound with gr.Blocks(css="style.css") as demo: with gr.Column(elem_id="col-container"): gr.HTML("""
description