System Console
Configuration
Output Generated
The system successfully processed the request. Below is the analysis of the error found in the startup log:
❌ Original (Broken):
with gr.Blocks(theme=gr.themes.Soft(primary_hue="blue")) as demo:
✅ Fixed (Modern Gradio):
# Gradio V5+ handles themes globally or via CSS.
# Remove 'theme' argument from Blocks() to fix TypeError.
# Remove 'theme' argument from Blocks() to fix TypeError.
with gr.Blocks() as demo:
# Add custom CSS for Soft Blue Theme
gr.Markdown('# Application Style', elem_classes="soft-blue")
Application Status
0
Active Errors
99.9%
Stability Score
Startup Sequence Timeline
2026-02-08 09:25:30
Loading dependencies...
2026-02-08 09:25:31
Initializing UI Blocks
2026-02-08 09:25:31
Critical Error: TypeError
BlockContext.__init__() got an unexpected keyword argument 'theme'
Solution Insight
The error occurred because modern versions of Gradio (V5+) have deprecated the theme argument within the gr.Blocks() constructor.
To achieve the "Soft Blue" look, you should either use the global theme settings or apply custom CSS classes to your components.