Main: Add await to an async function
load_loras wasn't properly updated. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
parent
ab526f7278
commit
ae879a623f
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
|
@ -112,7 +112,7 @@ async def entrypoint(args: Optional[dict] = None):
|
|||
lora_config = config.lora_config()
|
||||
if lora_config.get("loras"):
|
||||
lora_dir = pathlib.Path(unwrap(lora_config.get("lora_dir"), "loras"))
|
||||
model.container.load_loras(lora_dir.resolve(), **lora_config)
|
||||
await model.container.load_loras(lora_dir.resolve(), **lora_config)
|
||||
|
||||
await start_api(host, port)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue