Updated services

This commit is contained in:
Saifeddine ALOUI 2025-03-12 23:01:51 +01:00
parent 5881a4445e
commit e2f2c72614
2 changed files with 12 additions and 7 deletions

View File

@ -111,7 +111,7 @@ async def list_stt_services(request: ServiceListingRequest) -> List[Dict[str, st
return stt_services
@router.post("/get_active_stt_sesttngs")
@router.post("/get_active_stt_sesttings")
async def get_active_stt_sesttngs(request: Request):
data = await request.json()
check_access(lollmsElfServer,data["client_id"])
@ -124,7 +124,7 @@ async def get_active_stt_sesttngs(request: Request):
else:
return {}
@router.post("/set_active_stt_sesttngs")
@router.post("/set_active_stt_sesttings")
async def set_active_stt_sesttngs(request: Request):
data = await request.json()
check_access(lollmsElfServer,data["client_id"])

View File

@ -42,11 +42,16 @@ class LollmsTTI(LollmsSERVICE):
self.output_folder = app.lollms_paths.personal_outputs_path/name
self.output_folder.mkdir(exist_ok=True, parents=True)
def paint(self,
positive_prompt: str,
negative_prompt: str = "",
width=512,
height=512,
output_path = None) -> List[Dict[str, str]]:
positive_prompt,
negative_prompt,
sampler_name="Euler",
seed=None,
scale=None,
steps=None,
width=None,
height=None,
output_dir=None,
output_file_name=None) -> List[Dict[str, str]]:
"""
Generates images based on the given positive and negative prompts.