File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ async def generator():
166
166
)
167
167
168
168
yield get_sse_packet (response .json (ensure_ascii = False ))
169
- except CancelledError as e :
169
+ except CancelledError :
170
170
print ("\n Error: Model load cancelled by user. Please make sure to run unload to free up resources." )
171
171
except Exception as e :
172
172
yield get_generator_error (str (e ))
@@ -210,7 +210,7 @@ async def get_active_loras():
210
210
211
211
# Load lora endpoint
212
212
@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 ):
214
214
if not data .loras :
215
215
raise HTTPException (400 , "List of loras to load is not found." )
216
216
You can’t perform that action at this time.
0 commit comments