Update api.py
Browse files
api.py
CHANGED
|
@@ -27,7 +27,13 @@ except ImportError as e:
|
|
| 27 |
|
| 28 |
import google.generativeai as genai
|
| 29 |
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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)
|