Shanulhaq commited on
Commit
8a4e769
1 Parent(s): 70f5dcc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -1,7 +1,8 @@
1
  import os
2
  import logging
3
  import streamlit as st
4
- import google.generativeai
 
5
  from streamlit_chat import message
6
  import whisper
7
  from gtts import gTTS
@@ -14,7 +15,11 @@ GOOGLE_API_KEY = os.getenv("GOOGLE_API_KEY")
14
  GROQ_API_KEY = os.getenv("GROQ_API_KEY")
15
 
16
  # Configure Google Generative AI API
17
- genai.configure(api_key=GOOGLE_API_KEY)
 
 
 
 
18
 
19
  # Set up logging
20
  logging.basicConfig(level=logging.INFO)
 
1
  import os
2
  import logging
3
  import streamlit as st
4
+ #import google.generativeai
5
+ from google.cloud import aiplatform
6
  from streamlit_chat import message
7
  import whisper
8
  from gtts import gTTS
 
15
  GROQ_API_KEY = os.getenv("GROQ_API_KEY")
16
 
17
  # Configure Google Generative AI API
18
+ #genai.configure(api_key=GOOGLE_API_KEY)
19
+
20
+ # Initialize the AI Platform client
21
+ aiplatform.init(project="Generative Language Client", location="your-region")
22
+
23
 
24
  # Set up logging
25
  logging.basicConfig(level=logging.INFO)