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