From f6db48b1d0a82b8ef35eb2258ccc54395a79cbd5 Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 14 Jun 2026 05:18:28 +0000 Subject: [PATCH] Fix Gradio 6.0 compatibility: remove show_api, move css to launch() --- scraibe/webui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scraibe/webui.py b/scraibe/webui.py index 549dd64..1b5d7ee 100644 --- a/scraibe/webui.py +++ b/scraibe/webui.py @@ -144,9 +144,9 @@ def create_app(): footer_html = f.read() # Build Gradio interface + # In Gradio 6.0+, css must be passed to launch(), not Blocks() with gr.Blocks( title="A.P.Strom Transcription", - css="body { font-family: Arial, sans-serif; }", ) as app: # Header @@ -267,7 +267,7 @@ def create_app(): server_name=str(server_name), server_port=int(server_port), favicon_path=favicon_path if os.path.exists(favicon_path) else None, - show_api=False, + css="body { font-family: Arial, sans-serif; }", )