Akankshg commited on
Commit
7f7384d
·
verified ·
1 Parent(s): e246b04

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -1201,11 +1201,17 @@ if analysis_option == 'EDA':
1201
  st.dataframe(health_data.head(20).style.format({'PatientID': "{:.0f}"}))
1202
 
1203
 
 
 
 
 
 
 
1204
  if analysis_option == 'Health Care Chat Bot AI':
1205
  ##//////start here just add paitnet + vital information.
1206
  # data = pd.read_parquet('Health-Data-3.parquet')
1207
- google_key = st.secrets["api_keys"]["google_key"]
1208
- llm = GoogleGemini(api_key=google_key)
1209
  pandas_ai = SmartDataframe(data, config={"llm": llm, "response_parser": StreamlitResponse,"verbose": True})
1210
  pandas_ai_2 = SmartDataframe(data, config={"llm": llm,"verbose": True}) ## string
1211
  # Streamlit app title and description
 
1201
  st.dataframe(health_data.head(20).style.format({'PatientID': "{:.0f}"}))
1202
 
1203
 
1204
+
1205
+
1206
+
1207
+ # Initialize Google Gemini or any other Google API client using the key
1208
+
1209
+
1210
  if analysis_option == 'Health Care Chat Bot AI':
1211
  ##//////start here just add paitnet + vital information.
1212
  # data = pd.read_parquet('Health-Data-3.parquet')
1213
+ google_api_key = os.environ.get("google_key")
1214
+ llm = GoogleGemini(api_key=google_api_key)
1215
  pandas_ai = SmartDataframe(data, config={"llm": llm, "response_parser": StreamlitResponse,"verbose": True})
1216
  pandas_ai_2 = SmartDataframe(data, config={"llm": llm,"verbose": True}) ## string
1217
  # Streamlit app title and description