Spaces:
Sleeping
Sleeping
Update api.py
Browse files
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
|
| 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 =
|
| 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
|