Gradio 6: theme and css go to launch()
Browse files481 unmodified lines482483484485485486487488152 unmodified lines641642643644644645481 unmodified lines.status p {font-size: 0.8rem; opacity: 0.65; text-align: center;}"""
with gr.Blocks(title="PlagueKind 路 MiniMax-H3", theme=gr.themes.Citrus(), css=CSS) as demo:with gr.Blocks(title="PlagueKind 路 MiniMax-H3") as demo: gr.Markdown(INTRO) gr.Markdown(status(), elem_classes="status")
152 unmodified lines
if __name__ == "__main__": demo.launch(show_error=True) # `theme` and `css` belong to `launch()` from Gradio 6.0 on; on `Blocks` they warn and are ignored. demo.launch(show_error=True, theme=gr.themes.Citrus(), css=CSS)app.py+3-2