adrienbrdne commited on
Commit
15d7026
·
verified ·
1 Parent(s): 5d630eb

Update api.py

Browse files
Files changed (1) hide show
  1. api.py +7 -1
api.py CHANGED
@@ -27,7 +27,13 @@ except ImportError as e:
27
 
28
  import google.generativeai as genai
29
 
30
- from scoring.specificity import health_check
 
 
 
 
 
 
31
 
32
  status = health_check()
33
  print(status)
 
27
 
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)