Update app.py
Browse files6 unmodified lines789101112131431 unmodified lines4647484950515253545556576 unmodified lines@st.cache_resourcedef load_validator():# Using Qwen 2.5 1.5B Instruct for better reasoningmodel_id = "Qwen/Qwen2.5-1.5B-Instruct"pipe = pipeline("text-generation",model=model_id,31 unmodified lines# Constructing the promptprompt = f"""<|im_start|>systemYou are an expert DevOps Engineer specializing in Jenkins Pipelines.Only analyze the file if its Jenkins file else ignore it completely.1. Syntax errors.2. Security risks (e.g., hardcoded credentials).3. Best practices (e.g., timeouts, cleanup).Return the results in a clear, bulleted format.<|im_end|><|im_start|>userValidate this Jenkinsfile:```groovy6 unmodified lines789101112131431 unmodified lines464748495051526 unmodified lines@st.cache_resourcedef load_validator():model_id = "Qwen/Qwen3-0.6B"pipe = pipeline("text-generation",model=model_id,31 unmodified lines# Constructing the promptprompt = f"""<|im_start|>systemYou are an expert Coder who knows all the tech stacks. Identify the code and provide the CORRECT code <|im_end|><|im_start|>userValidate this Jenkinsfile:```groovy
app.py+3-8