Fix Gradio 6.0 compatibility: remove show_api, move css to launch()
Mirror and run GitLab CI / build (push) Has been cancelled
Ruff / ruff (push) Has been cancelled

This commit is contained in:
admin
2026-06-14 05:18:28 +00:00
parent 37d30e0ee2
commit f6db48b1d0
+2 -2
View File
@@ -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; }",
)