From e7c004c3fca83fe2a266eebdb4dcdb3494c25118 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Thu, 27 Nov 2025 12:33:37 +0100 Subject: [PATCH] fix: remove theme parameter for Gradio 6.0 compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Gradio 6.0.1 doesn't support the theme parameter in gr.Blocks(). The dark styling is now provided entirely through the custom CSS. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/ui/app.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ui/app.py b/src/ui/app.py index d5c0477..7d415dc 100644 --- a/src/ui/app.py +++ b/src/ui/app.py @@ -5,7 +5,7 @@ import torch import gradio as gr from src.config import config -from src.ui.theme import get_theme, get_css +from src.ui.theme import get_css from src.ui.components.image_tab import create_image_tab from src.ui.components.video_tab import create_video_tab from src.ui.components.batch_tab import create_batch_tab @@ -30,14 +30,12 @@ def get_gpu_status() -> str: def create_app() -> gr.Blocks: """Create and return the main Gradio application.""" - theme = get_theme() css = get_css() + # Gradio 6.0+ compatible Blocks initialization with gr.Blocks( - theme=theme, css=css, title="Real-ESRGAN Upscaler", - fill_width=True, ) as app: # Header gr.HTML(