Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|