import gradio as gr | |
title = "test" | |
# def inference(text): | |
# html = ( | |
# "<div >" | |
# "<img src='file/MOEI_resized.png' alt='image One'>" | |
# + "</div>" | |
# ) | |
# return html | |
# gr.Interface( | |
# inference, | |
# gr.inputs.Textbox(placeholder="Enter sentence here..."), | |
# outputs=["html"], | |
# title=title, | |
# allow_flagging="never", | |
# ).launch(enable_queue=True, share=True, allowed_paths=["MOEI_resized.png"]) | |
with gr.Blocks() as demo: | |
gr.HTML("<img src='file/MOEI_resized.png' alt='image One'>") | |
css_code='body{background-image:url("MBZUAI_resized.jpg");}' | |
gr.Interface(lambda x:x, "textbox", "textbox", css=css_code).launch(debug=True) | |
demo.launch(share=True) |