mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-19 12:47:58 +00:00
fixed xtts installer
This commit is contained in:
parent
4734e5f359
commit
6afd883f1b
@ -191,9 +191,9 @@ def install_xtts(data:Identification):
|
||||
if lollmsElfServer.config.host!="localhost" and lollmsElfServer.config.host!="127.0.0.1":
|
||||
return {"status":False,"error":"Service installation is blocked when the server is exposed outside for very obvious reasons!"}
|
||||
|
||||
from lollms.services.xtts.lollms_xtts import LollmsTTS
|
||||
from lollms.services.xtts.lollms_xtts import LollmsXTTS
|
||||
lollmsElfServer.ShowBlockingMessage("Installing xTTS api server\nPlease stand by")
|
||||
LollmsTTS.install(lollmsElfServer)
|
||||
LollmsXTTS.install(lollmsElfServer)
|
||||
lollmsElfServer.HideBlockingMessage()
|
||||
return {"status":True}
|
||||
except Exception as ex:
|
||||
|
@ -127,5 +127,6 @@ class LollmsSTT:
|
||||
print(devices)
|
||||
return {
|
||||
"status": True,
|
||||
"device_names": [device['name'] for device in devices if device["max_input_channels"]>0]
|
||||
"device_names": [device['name'] for device in devices if device["max_input_channels"]>0],
|
||||
"device_indexes": [device['index'] for device in devices if device["max_input_channels"]>0]
|
||||
}
|
@ -147,7 +147,8 @@ class LollmsTTS:
|
||||
|
||||
return {
|
||||
"status": True,
|
||||
"device_names": [device['name'] for device in devices if device["max_output_channels"]>0]
|
||||
"device_names": [device['name'] for device in devices if device["max_output_channels"]>0],
|
||||
"device_indexes": [device['index'] for device in devices if device["max_output_channels"]>0]
|
||||
}
|
||||
|
||||
@staticmethod
|
||||
|
Loading…
Reference in New Issue
Block a user