Gradio 6: theme and css go to launch()
Browse files481 unmodified lines482483484485486487488152 unmodified lines641642643644481 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:gr.Markdown(INTRO)gr.Markdown(status(), elem_classes="status")152 unmodified linesif __name__ == "__main__":demo.launch(show_error=True)481 unmodified lines482483484485486487488152 unmodified lines641642643644645481 unmodified lines.status p {font-size: 0.8rem; opacity: 0.65; text-align: center;}"""with gr.Blocks(title="PlagueKind 路 MiniMax-H3") as demo:gr.Markdown(INTRO)gr.Markdown(status(), elem_classes="status")152 unmodified linesif __name__ == "__main__":# `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