mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-03-13 15:56:37 +00:00
Updated services
This commit is contained in:
parent
5881a4445e
commit
e2f2c72614
@ -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"])
|
||||
|
@ -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.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user