adrienbrdne commited on
Commit
d142860
·
verified ·
1 Parent(s): 6948ec2

Update api.py

Browse files
Files changed (1) hide show
  1. api.py +2 -2
api.py CHANGED
@@ -28,14 +28,14 @@ except ImportError as e:
28
  import google.generativeai as genai
29
 
30
  try:
31
- from scoring.specificity import health_check
32
  except ImportError as e:
33
  print(f"Error importing scoring component: {e}")
34
  print("Please ensure scoring is in your Python path or installed.")
35
  # You might want to exit or raise a clearer error if imports fail
36
  raise
37
 
38
- status = health_check()
39
  print(status)
40
 
41
  # Configure logging for the API
 
28
  import google.generativeai as genai
29
 
30
  try:
31
+ from scoring.specificity import load_model
32
  except ImportError as e:
33
  print(f"Error importing scoring component: {e}")
34
  print("Please ensure scoring is in your Python path or installed.")
35
  # You might want to exit or raise a clearer error if imports fail
36
  raise
37
 
38
+ status = load_model()
39
  print(status)
40
 
41
  # Configure logging for the API