only require HF_Token on backend
This commit is contained in:
+1
-3
@@ -46,9 +46,7 @@ JSON
|
||||
exit 1
|
||||
}
|
||||
|
||||
[ -z "$BACKEND" ] && report_error_and_exit "BACKEND must be set!"
|
||||
[ -z "$MODEL_LOG" ] && report_error_and_exit "MODEL_LOG must be set!"
|
||||
[ -z "$HF_TOKEN" ] && report_error_and_exit "HF_TOKEN must be set!"
|
||||
[ -n "$BACKEND" ] && [ -z "$HF_TOKEN" ] && report_error_and_exit "HF_TOKEN must be set when BACKEND is set!"
|
||||
[ -z "$CONTAINER_ID" ] && report_error_and_exit "CONTAINER_ID must be set!"
|
||||
[ "$BACKEND" = "comfyui" ] && [ -z "$COMFY_MODEL" ] && report_error_and_exit "For comfyui backends, COMFY_MODEL must be set!"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user