mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix for model info on ready only crashing
This commit is contained in:
@@ -9612,7 +9612,10 @@ def UI_2_audio():
|
|||||||
#==================================================================#
|
#==================================================================#
|
||||||
@app.route("/model")
|
@app.route("/model")
|
||||||
def model_info():
|
def model_info():
|
||||||
return {"Model Type": str(model_config.model_type), "Model Size": get_model_size(koboldai_vars.model), "Model Name": koboldai_vars.model.replace("_", "/")}
|
if model_config is not None:
|
||||||
|
return {"Model Type": str(model_config.model_type), "Model Size": get_model_size(koboldai_vars.model), "Model Name": koboldai_vars.model.replace("_", "/")}
|
||||||
|
else:
|
||||||
|
return {"Model Type": "Read Only", "Model Size": "0", "Model Name": koboldai_vars.model.replace("_", "/")}
|
||||||
|
|
||||||
|
|
||||||
@app.route("/vars")
|
@app.route("/vars")
|
||||||
|
Reference in New Issue
Block a user