mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-09-29 15:15:27 -07:00
Add Tauri integration and server management features. Introduced auto-start functionality for the bundled server in Tauri environment, added configuration management for data directories, and refactored backend components to utilize the new config module. Updated dependencies and improved project structure for better organization.
This commit is contained in:
+4
-3
@@ -12,11 +12,12 @@ from sqlalchemy import or_
|
||||
|
||||
from .models import GenerationRequest, GenerationResponse, HistoryQuery, HistoryResponse, HistoryListResponse
|
||||
from .database import Generation as DBGeneration, VoiceProfile as DBVoiceProfile
|
||||
from . import config
|
||||
|
||||
|
||||
# Generations storage directory
|
||||
GENERATIONS_DIR = Path("data/generations")
|
||||
GENERATIONS_DIR.mkdir(parents=True, exist_ok=True)
|
||||
def _get_generations_dir() -> Path:
|
||||
"""Get generations directory from config."""
|
||||
return config.get_generations_dir()
|
||||
|
||||
|
||||
async def create_generation(
|
||||
|
||||
Reference in New Issue
Block a user