Spaces:
Sleeping
Sleeping
Update lab_analyzer.py
Browse files- lab_analyzer.py +1 -1
lab_analyzer.py
CHANGED
|
@@ -16,7 +16,7 @@ class LabReportAnalyzer:
|
|
| 16 |
# Try to get API key from environment variable first, fallback to hardcoded
|
| 17 |
self.api_key = os.getenv("GOOGLE_AI_STUDIO_API_KEY", "AIzaSyBiPSbIhtIFHwdmpJU9dwf79sqfu07BcHY")
|
| 18 |
self.base_url = "https://generativelanguage.googleapis.com/v1beta/models"
|
| 19 |
-
self.model = "gemini-2.
|
| 20 |
|
| 21 |
async def analyze_report(self, image_b64: str) -> Dict[str, Any]:
|
| 22 |
"""
|
|
|
|
| 16 |
# Try to get API key from environment variable first, fallback to hardcoded
|
| 17 |
self.api_key = os.getenv("GOOGLE_AI_STUDIO_API_KEY", "AIzaSyBiPSbIhtIFHwdmpJU9dwf79sqfu07BcHY")
|
| 18 |
self.base_url = "https://generativelanguage.googleapis.com/v1beta/models"
|
| 19 |
+
self.model = "gemini-2.5-flash-lite" # Using Gemini 2.0 Flash for vision capabilities
|
| 20 |
|
| 21 |
async def analyze_report(self, image_b64: str) -> Dict[str, Any]:
|
| 22 |
"""
|