Skip to content

Commit

Permalink
adding model check
Browse files Browse the repository at this point in the history
  • Loading branch information
Virgula0 committed Jan 18, 2025
1 parent 0536d5b commit dbcdbd3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ def main():
sys.exit(-1)

model = joblib.load(MODEL_PATH)

if not model:
console.print("[bold red]Unable to load the model[/bold red]")
sys.exit(-1)

console.print(f"[bold green][INFO] Model loaded successfully! {type(model)}[/bold green]")

if os.path.exists(RUNTIME_CAPTURE):
Expand Down

0 comments on commit dbcdbd3

Please sign in to comment.