Fix Database.initialize and remove invalid theme param

- Add initialize() method as alias for connect()
- Remove invalid tab_nav_background_fill theme parameter

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-26 23:24:08 +01:00
parent fd5c8acea2
commit 64a94e7ab7
2 changed files with 4 additions and 3 deletions

View File

@@ -183,6 +183,10 @@ class Database:
logger.info(f"Database connected: {self.db_path}")
async def initialize(self) -> None:
"""Alias for connect() for compatibility."""
await self.connect()
async def close(self) -> None:
"""Close database connection."""
if self._connection:

View File

@@ -74,9 +74,6 @@ def create_audiocraft_theme() -> gr.themes.Base:
block_title_text_color="#f1f5f9",
block_title_text_color_dark="#f1f5f9",
# Tabs
tab_nav_background_fill="#1e293b",
# Sliders
slider_color="#3b82f6",
slider_color_dark="#3b82f6",