Update model.py
Browse files182 unmodified lines183184185186187188189182 unmodified linesdetector.eval()def predict(code: str, threshold: float = THRESHOLD) -> dict:if len(code.strip()) < 200:return {"pred": "too short", "prob": None}with torch.no_grad():182 unmodified lines183184185186187188189182 unmodified linesdetector.eval()def predict(code: str, threshold: float = THRESHOLD) -> dict:if len(code.strip()) < 120:return {"pred": "too short", "prob": None}with torch.no_grad():
model.py+1-1