Maaz1 commited on
Commit
3b3718a
·
verified ·
1 Parent(s): fe90954

Update src/scripts/health_recommendations.py

Browse files
src/scripts/health_recommendations.py CHANGED
@@ -7,7 +7,7 @@ class HealthRecommendations:
7
  def __init__(self):
8
  # Configure Google GenAI
9
  api_key = os.getenv("gemini_api") # Fetch from environment variable
10
- genai.configure(api_key)
11
 
12
  def get_recommendations(self, patient_data: Dict, prediction: Dict) -> Dict[str, List[str]]:
13
  """Generate personalized health recommendations based on patient data and prediction"""
 
7
  def __init__(self):
8
  # Configure Google GenAI
9
  api_key = os.getenv("gemini_api") # Fetch from environment variable
10
+ genai.configure(api_key=api_key)
11
 
12
  def get_recommendations(self, patient_data: Dict, prediction: Dict) -> Dict[str, List[str]]:
13
  """Generate personalized health recommendations based on patient data and prediction"""