Spaces:
Sleeping
Sleeping
Update app/services/gemini_service.py
Browse files
app/services/gemini_service.py
CHANGED
|
@@ -17,7 +17,7 @@ class GeminiNutritionService:
|
|
| 17 |
if not api_key:
|
| 18 |
raise ValueError("GEMINI_API_KEY not found in .env")
|
| 19 |
if model_name is None:
|
| 20 |
-
model_name=os.getenv('GEMINI_MODEL','gemini-3-flash-
|
| 21 |
self.client=genai.Client(api_key=api_key)
|
| 22 |
self.model_name=model_name
|
| 23 |
def create_prompt(self,yolo_detections:List[str])->str:
|
|
|
|
| 17 |
if not api_key:
|
| 18 |
raise ValueError("GEMINI_API_KEY not found in .env")
|
| 19 |
if model_name is None:
|
| 20 |
+
model_name=os.getenv('GEMINI_MODEL','gemini-3.1-flash-lite')
|
| 21 |
self.client=genai.Client(api_key=api_key)
|
| 22 |
self.model_name=model_name
|
| 23 |
def create_prompt(self,yolo_detections:List[str])->str:
|