adrienbrdne commited on
Commit
74b8a5e
·
verified ·
1 Parent(s): 3347729

Update api.py

Browse files
Files changed (1) hide show
  1. api.py +1 -1
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 or not genai.is_configured():
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