Spaces:
Sleeping
Sleeping
alanchen1115
commited on
Update main.py
Browse files
main.py
CHANGED
@@ -15,7 +15,7 @@ from linebot.models import (
|
|
15 |
MessageEvent, TextMessage, TextSendMessage, ImageSendMessage, AudioMessage
|
16 |
)
|
17 |
|
18 |
-
GOOGLE_API_KEY =
|
19 |
genai.configure(api_key = GOOGLE_API_KEY)
|
20 |
# Initialize the Gemini model
|
21 |
model = genai.GenerativeModel('gemini-pro')
|
|
|
15 |
MessageEvent, TextMessage, TextSendMessage, ImageSendMessage, AudioMessage
|
16 |
)
|
17 |
|
18 |
+
GOOGLE_API_KEY = os.environ["GOOGLE_API_KEY"]
|
19 |
genai.configure(api_key = GOOGLE_API_KEY)
|
20 |
# Initialize the Gemini model
|
21 |
model = genai.GenerativeModel('gemini-pro')
|