import gradio as gr from gradio.themes.utils import sizes with open("banner.html", "r") as file: banner = file.read() CUSTOM_CSS = """ .image-container img { max-width: 192px; max-height: 288px; margin: 0 auto; border-radius: 0px; .gradio-container {background-color: #fafafa} """ with gr.Blocks(css=CUSTOM_CSS, theme=gr.themes.Monochrome(radius_size=sizes.radius_md)) as demo: gr.HTML(banner) if __name__ == "__main__": demo.launch(show_api=False)