Skip to content

Commit 9f195af

Browse files
committed
Main: Fix function calls
Some function names were declared twice. Signed-off-by: kingbri <bdashore3@proton.me>
1 parent fd9f3ea commit 9f195af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ async def generator():
166166
)
167167

168168
yield get_sse_packet(response.json(ensure_ascii=False))
169-
except CancelledError as e:
169+
except CancelledError:
170170
print("\nError: Model load cancelled by user. Please make sure to run unload to free up resources.")
171171
except Exception as e:
172172
yield get_generator_error(str(e))
@@ -210,7 +210,7 @@ async def get_active_loras():
210210

211211
# Load lora endpoint
212212
@app.post("/v1/lora/load", dependencies=[Depends(check_admin_key), Depends(_check_model_container)])
213-
async def load_model(data: LoraLoadRequest):
213+
async def load_lora(data: LoraLoadRequest):
214214
if not data.loras:
215215
raise HTTPException(400, "List of loras to load is not found.")
216216

0 commit comments

Comments
 (0)