Spaces:
Running
Running
Update gemini.py
Browse files
gemini.py
CHANGED
@@ -7,8 +7,8 @@ from google import genai
|
|
7 |
from google.genai import types
|
8 |
|
9 |
# 設定 Gemini API 金鑰
|
10 |
-
GOOGLE_API_KEY = os.environ.get("
|
11 |
-
client = genai.Client(api_key=
|
12 |
|
13 |
# 設定圖片儲存目錄
|
14 |
STATIC_IMAGE_PATH = "static/images"
|
|
|
7 |
from google.genai import types
|
8 |
|
9 |
# 設定 Gemini API 金鑰
|
10 |
+
GOOGLE_API_KEY = os.environ.get("GEMINI_API_KEY")
|
11 |
+
client = genai.Client(api_key=GEMINI_API_KEY)
|
12 |
|
13 |
# 設定圖片儲存目錄
|
14 |
STATIC_IMAGE_PATH = "static/images"
|