Update api.py
Browse files
api.py
CHANGED
@@ -233,7 +233,7 @@ async def evaluation(request: SpecificityEvaluationRequest):
|
|
233 |
and topic, then evaluates its specificity using an external API (fine-tuned model for specificity).
|
234 |
"""
|
235 |
# Check if Gemini library was imported and configured
|
236 |
-
if not genai
|
237 |
logger.error("Gemini client is not available or configured.")
|
238 |
raise HTTPException(status_code=503, detail="Service Unavailable: Gemini client not configured")
|
239 |
|
|
|
233 |
and topic, then evaluates its specificity using an external API (fine-tuned model for specificity).
|
234 |
"""
|
235 |
# Check if Gemini library was imported and configured
|
236 |
+
if not genai:
|
237 |
logger.error("Gemini client is not available or configured.")
|
238 |
raise HTTPException(status_code=503, detail="Service Unavailable: Gemini client not configured")
|
239 |
|