import gradio as gr title = "test" def inference(text): html = ( "
" "image One" + "
" ) return html gr.Interface( inference, gr.inputs.Textbox(placeholder="Enter sentence here..."), outputs=["html"], title=title, allow_flagging="never", ).launch(enable_queue=True)