Various UI improvements

This commit is contained in:
riversedge
2026-02-04 23:15:00 -05:00
parent b75bea3860
commit 424bd3fd25
9 changed files with 262 additions and 67 deletions
+8 -1
View File
@@ -9,6 +9,7 @@ import json
import os
import sys
import time
import torch
# Get ACE-Step path from environment or use default
ACESTEP_PATH = os.environ.get('ACESTEP_PATH', '/home/ambsd/Desktop/aceui/ACE-Step-1.5')
@@ -27,11 +28,17 @@ _llm_handler = None
def get_handlers():
global _handler, _llm_handler
if _handler is None:
if torch.cuda.is_available():
device = "cuda"
elif torch.backends.mps.is_available():
device = "mps"
else:
device = "cpu"
_handler = AceStepHandler()
_handler.initialize_service(
project_root=ACESTEP_PATH,
config_path="acestep-v15-turbo",
device="cuda",
device=device,
offload_to_cpu=True, # For 12GB GPU
)
_llm_handler = LLMHandler() # Create but don't initialize (not enough VRAM)