Spaces:
Sleeping
Sleeping
Update lab_analyzer.py
Browse files- lab_analyzer.py +1 -1
lab_analyzer.py
CHANGED
|
@@ -14,7 +14,7 @@ class LabReportAnalyzer:
|
|
| 14 |
def __init__(self):
|
| 15 |
"""Initialize the analyzer with Google AI Studio API"""
|
| 16 |
# Try to get API key from environment variable first, fallback to hardcoded
|
| 17 |
-
self.api_key = os.getenv("GOOGLE_AI_STUDIO_API_KEY", "
|
| 18 |
self.base_url = "https://generativelanguage.googleapis.com/v1beta/models"
|
| 19 |
self.model = "gemini-2.0-flash" # Using Gemini 2.0 Flash for vision capabilities
|
| 20 |
|
|
|
|
| 14 |
def __init__(self):
|
| 15 |
"""Initialize the analyzer with Google AI Studio API"""
|
| 16 |
# Try to get API key from environment variable first, fallback to hardcoded
|
| 17 |
+
self.api_key = os.getenv("GOOGLE_AI_STUDIO_API_KEY", "AIzaSyC3uchbR9kT3SUmGctdsI2pAin531DDIKw")
|
| 18 |
self.base_url = "https://generativelanguage.googleapis.com/v1beta/models"
|
| 19 |
self.model = "gemini-2.0-flash" # Using Gemini 2.0 Flash for vision capabilities
|
| 20 |
|