From 1b1d836b6c368fa7f3f77e36e9ce55166f1b5d63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Wed, 26 Nov 2025 23:30:10 +0100 Subject: [PATCH] Simplify gr.Blocks for older Gradio compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove theme and title params that aren't supported in older versions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/ui/app.py | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/ui/app.py b/src/ui/app.py index 8ecc82f..c4ef2eb 100644 --- a/src/ui/app.py +++ b/src/ui/app.py @@ -192,19 +192,8 @@ class AudioCraftApp: """Build the Gradio application.""" css = get_custom_css() - # Create Blocks with compatible parameters - try: - # Gradio 4.x - app = gr.Blocks( - theme=gr.themes.Soft(), - css=css, - title="AudioCraft Studio", - ) - except TypeError: - # Fallback for older Gradio versions - app = gr.Blocks(css=css) - - with app: + # Create Blocks - use minimal params for compatibility + with gr.Blocks(css=css) as app: # Header with VRAM monitor with gr.Row(): with gr.Column(scale=4):