Add managed LadyPoly WebUI using Deck music API
This commit is contained in:
+1
-1
@@ -197,7 +197,7 @@ class APIHandler(BaseHTTPRequestHandler):
|
||||
with ep.lock:
|
||||
if not ep.allowed():raise APIError('Endpunkt wird gestoppt.',503,'endpoint_stopping')
|
||||
ep.inflight+=1;admitted=True
|
||||
if ep.video and ep.scheduler.gpu_mode!='llm':
|
||||
if ep.video and ep.scheduler.gpu_mode not in ('llm','music'):
|
||||
if ep.scheduler.gpu_mode=='switching':raise APIError('Moduswechsel läuft.',503,'mode_switching')
|
||||
video=ep.video.status()
|
||||
if not video.get('service',{}).get('ready'):raise APIError('Video-API noch nicht bereit.',503,'video_not_ready')
|
||||
|
||||
Reference in New Issue
Block a user