Spaces:
Sleeping
Sleeping
Update modules/gemini_handler.py
Browse files
modules/gemini_handler.py
CHANGED
|
@@ -6,7 +6,11 @@ for both text and multi-modal (vision) generation, including robust error handli
|
|
| 6 |
"""
|
| 7 |
import google.generativeai as genai
|
| 8 |
from PIL import Image
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
# --- Configuration ---
|
| 12 |
if not GEMINI_API_KEY:
|
|
|
|
| 6 |
"""
|
| 7 |
import google.generativeai as genai
|
| 8 |
from PIL import Image
|
| 9 |
+
|
| 10 |
+
# ==============================================================================
|
| 11 |
+
# CORRECTED LINE: The import path now correctly points to api_clients/config.py
|
| 12 |
+
from api_clients.config import GEMINI_API_KEY
|
| 13 |
+
# ==============================================================================
|
| 14 |
|
| 15 |
# --- Configuration ---
|
| 16 |
if not GEMINI_API_KEY:
|